Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: 'perl -e' and '__DATA__' What's wrong?

by ikegami (Pope)
on Dec 07, 2007 at 08:39 UTC ( #655606=note: print w/ replies, xml ) Need Help??


in reply to 'perl -e' and '__DATA__' What's wrong?

It is an undocumented limit resulting from the choice of code used to implement __DATA__. (Hey a bug! although probably only a documentation bug.)

DATA is (effectively?) the file handle from which Perl reads the source, left pointing at the start of the line after the __DATA__ token.

Since -e doesn't read from a source file, DATA isn't a file handle to the source file.


Comment on Re: 'perl -e' and '__DATA__' What's wrong?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-07-12 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls