in reply to Re^4: sprintf is printing unexepected output
in thread sprintf is printing unexepected output

Ugly output? What do you mean?
  • Comment on Re^5: sprintf is printing unexepected output

Replies are listed 'Best First'.
Re^6: sprintf is printing unexepected output
by jettero (Monsignor) on Dec 31, 2006 at 03:41 UTC
    I was curious enough to try it...
    # perl -MData::Dump=dump -e '$h = {lol=>2}; $h->{lol2} = $h; print dum +p($h), "\n"' do { my $a = { lol => 2, lol2 => 'fix' }; $a->{lol2} = $a; $a; }

    That really is pretty slick looking compared to Data::Dumper. I'm not going to switch or anything, but you can't deny the output looks cooler. Less efficient maybe, but cooler...

    -Paul

Re^6: sprintf is printing unexepected output
by ferreira (Chaplain) on Jan 02, 2007 at 11:04 UTC

    I meant you have those ugly $VARn variables by default and possibly a series of statements as output which may not be used like this:

    $var = [% dumper_output %];