Hi, From: Guido Brugnara <g...@leader.it> Date: Tuesday, August 16, 2016 4:49 PM To: <mason-users@lists.sourceforge.net> Subject: Re: [Mason] printing/echo'ing vars/arrays within mason tags?
> > ----- Il 16-ago-16, alle 17:30, Hiram Gibbard <hgibb...@gmail.com> ha scritto: >> Hi All, >> I'm wondering if there is a way to echo or print our vars or arrays within >> the Mason tags? > You can write to standard error, like: > > % use Data::Dumper; > % print STDERR Dumper \%my_hash; > > then you can read the result in the log files (I suppos you work on Apache, > but I think with other servers the beavior is the same). This will work fine. If you want to send to the browser, I recommend this recipe: https://metacpan.org/pod/Data::Printer#Easily-rendering-Data::Printers-outpu t-as-HTML It uses Data::Printer which tends to generate less verbose dumps compared to Data::Dumper or even Data::Dumo (IMVHO, of course). Bye, > > bye > gdo > > ------------------------------------------------------------------------------ > _______________________________________________ Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users
------------------------------------------------------------------------------
_______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users