[ww-devel] Making Perl modules available

Michael Gage gage at math.rochester.edu
Mon Jun 29 15:15:24 EDT 2015


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
>> 



More information about the webwork-devel mailing list