Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: String differs from printing to STDOUT and printing to file

by haukex (Archbishop)
on Oct 23, 2019 at 10:53 UTC ( [id://11107885]=note: print w/replies, xml ) Need Help??


in reply to String differs from printing to STDOUT and printing to file

To combine the points that rjt and GrandFather made, it'd be best if you inspect your string with Devel::Peek and your file with hexdump; I gave an example here.

  • Comment on Re: String differs from printing to STDOUT and printing to file

Replies are listed 'Best First'.
Re^2: String differs from printing to STDOUT and printing to file
by Tux (Canon) on Oct 23, 2019 at 11:12 UTC

    <shameless plug>Data::Peek combines the two without hexdump or od installed:</shameless plug>

    $ perl -MData::Peek -we'my $pw = "QeTEv2804\c@\c@\c@"; DPeek $pw; DDis +play $pw; DHexDump $pw' PV("QeTEv2804\0\0\0"\0) "QeTEv2804\0\0\0" 0000 51 65 54 45 76 32 38 30 34 00 00 00 QeTEv2804...

    Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found