[ww-devel] Making Perl modules available
Andrew Dabrowski
dabrowsa at indiana.edu
Mon Jun 29 15:23:18 EDT 2015
Thanks. Unfortunately pretty_print is not as robust as Perl's Dumper.
The MESSAGEs should be useful.
On 06/29/2015 03:15 PM, Michael Gage wrote:
> Some other tools which I use for debugging are the tools in PGinfo.pl. (listVariables() in particular )
>
> pretty_print($ref) which takes a reference to a hash or array.
>
> I also use DEBUG_MESSAGE() a lot when debugging to send information to the html page..
> The native perl warn() is also useful for this.
>
> I use WARN_MESSAGE() for permanent warnings
> that I want to leave in my macros to warn of bad input of some kind.
>
> Hope this is useful.
>
> Take care,
>
> Mike
>
>
>
>
>
>>> Try
>>>
>>> \{ Data::Dumper->Dump(@$matrix) \}
>>>
>>> and see if that works.
>>>
>>> Davide
>>>
> _______________________________________________
> webwork-devel mailing list
> webwork-devel at webwork.maa.org
> http://webwork.maa.org/mailman/listinfo/webwork-devel
--
Andrew Dabrowski || ...my suspicion is that the universe is
Indiana University || not only queerer than we suppose, but
Swain East 117 || queerer than we can suppose. -JBS Haldane
More information about the webwork-devel
mailing list