Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: a prime bug

by ownlifeful (Acolyte)
on Jun 11, 2017 at 11:52 UTC ( #1192523=note: print w/replies, xml ) Need Help??

in reply to Re: a prime bug
in thread a prime bug

I suppose, if you want to be formal about it.
iirc, __END__ and __DATA__ are equivalent, and that's why the script runs. Please correct me if you know otherwise.

Replies are listed 'Best First'.
Re^3: a prime bug
by shmem (Chancellor) on Jun 11, 2017 at 12:07 UTC

    Running a script - perl - the tokens make no difference. But if you invoke perl on the command line to read STDIN and paste the script, __END__ makes DATA into STDIN, and you have to type Ctrl-d to close STDIN/DATA. Not a big deal, but that's the difference ;-)

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2018-08-20 12:40 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (191 votes). Check out past polls.