Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: system function not handling string properly

by McA (Priest)
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 making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-07-06 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls