Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^6: system function not handling string properly

by McA (Curate)
on Sep 06, 2013 at 21:54 UTC ( #1052780=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052780]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-09-16 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (34 votes), past polls