Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by rjt (Curate)
on Oct 23, 2019 at 10:40 UTC ( [id://11107882]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.010;
    use strict;
    use warnings;
    ...
    open my $debug, '>>', 'debug.txt' or confess "Couldn't open file: $!";
    printf $debug "%s.\n", $var;
    close $debug;
    
  2. or download this
    $> hexdump -C debug.txt
    00000000  51 65 54 45 76 32 38 30  34 2e 0a                 |QeTEv2804
    +..|
    0000000b
    

Log In?
Username:
Password:

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

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

    No recent polls found