Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by MidLifeXis (Monsignor)
on Jan 03, 2014 at 13:22 UTC ( [id://1069138]=note: print w/replies, xml ) Need Help??


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

How about uuencoding / uudecoding the __DATA__ section?

--MidLifeXis

  • Comment on Re: Perl stops reading __DATA__ when meeting SUB character on Windows

Replies are listed 'Best First'.
Re^2: Perl stops reading __DATA__ when meeting SUB character on Windows
by yfnecz (Novice) on Jan 03, 2014 at 14:52 UTC
    I thought about base 64, but not so sure that all the binary data can be encoded/decoded correctly. What do you think?

      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://1069138]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found