Is this what you use? I'm a little curious what others do to easily see what variables contain. Maybe there's a good way I'm missing.
db On Thu, Mar 17, 2005 at 01:08:23AM -0300, Luiz Fernando B. Ribeiro wrote: > On Wed, 16 Mar 2005 17:45:59 -0800, Daniel <[EMAIL PROTECTED]> wrote: > > >Did anyone have a suggestion for this? > > > >On Tue, Mar 15, 2005 at 09:14:08AM -0800, Daniel wrote: > >>Hi, > >> > >>I tried using $escmode in a library today, which didn't seem to work. > >> > >> > >>I wrote this for debugging purposes: > >> > >>sub p { use Data::Dumper; > >> local $escmode=0; > >> print OUT "\<pre>"; > >> print OUT Dumper $_[0]; > >> print OUT "\</pre>"; > >> > >>} > > Try this: > > sub p { > use Data::Dumper; > return "<pre>" . Dumper $_[0] . "</pre>"; > } > > and in your pages call the sub inside a [+ local $escmode=0; p($data) +] > > this syntax works for 1.3.x I don't know what should be changed for > Embperl 2 > > -- > Luiz Fernando B. Ribeiro > Engenho Solu??es para a Internet > +55 11 6959-7610 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]