Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Perl stops reading __DATA__ when meeting SUB character on Windows

by yfnecz (Novice)
on Jan 03, 2014 at 14:52 UTC ( [id://1069155]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl stops reading __DATA__ when meeting SUB character on Windows
in thread Perl stops reading __DATA__ when meeting SUB character on Windows

I thought about base 64, but not so sure that all the binary data can be encoded/decoded correctly. What do you think?
  • Comment on Re^2: Perl stops reading __DATA__ when meeting SUB character on Windows

Replies are listed 'Best First'.
Re^3: Perl stops reading __DATA__ when meeting SUB character on Windows
by MidLifeXis (Monsignor) on Jan 03, 2014 at 14:54 UTC

    That is its function - to armor binary data in an ASCII-only environment. It is (IIRC) how binaries were distributed on NNTP, for example.

    --MidLifeXis

      Thanks, I tired putting base-64 encoded binaries to the DATA, and then decoding and writing to file. It works! Thanks for your help :)

Log In?
Username:
Password:

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

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

    No recent polls found