in reply to Re^5: system function not handling string properly
in thread system function not handling string properly

Thank you. That is really interesting. Good finding!

I'm really curious why Data::Dumper doesn't show the 0-bytes?

Best regards
McA

  • Comment on Re^6: system function not handling string properly

Replies are listed 'Best First'.
Re^7: system function not handling string properly (use Data::Dump qw/ dd pp /; )
by Anonymous Monk on Sep 07, 2013 at 08:13 UTC

    I'm really curious why Data::Dumper doesn't show the 0-bytes?

    It does :) its your browser/editor/shell that doesn't actually display them (non-printable), and in some cases doesn't actually copy/paste them

    Data::Dump does useqq-type-deal by default, and in a step of brilliance exports a dd kinda like this one

    sub dd { use Data::Dumper; print Data::Dumper->new([@_])->Sortkeys(1) ->Indent(1)->Useqq(1)->Dump . "\n"; }

    I'm really tired of typing print Dumper();... say Dumper()... so nowadays I have -MData::Dump=dd,pp in my PERL5OPT

Re^7: system function not handling string properly
by hermes1908 (Novice) on Sep 07, 2013 at 02:40 UTC
    Thanks alot! I guess I need to brush up on my knowledge of encoding (and Data::Dumper for that matter).