Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: __END__ without __BEGIN__?

by ktross (Deacon)
on Mar 29, 2005 at 21:21 UTC ( [id://443263]=note: print w/replies, xml ) Need Help??


in reply to Re^3: __END__ without __BEGIN__?
in thread __END__ without __BEGIN__?

Hmmm, still requires the addition of code "<<END" before the data.

Update: Yeah, I know I was wrong. Joost's solution works.

Replies are listed 'Best First'.
Re^5: __END__ without __BEGIN__?
by Joost (Canon) on Mar 29, 2005 at 21:27 UTC
Re^5: __END__ without __BEGIN__?
by bmann (Priest) on Mar 29, 2005 at 21:38 UTC
    The heredoc joost used is quoting for his shell, not perl. Put the following in a file (443263.pl, in my case) then run it using the -x command line switch.
    bla bla bla ignored #!perl #stuff_to_execute(); print "Hello, world!\n"; __END__ bla bla
    Output without -x: C:\S>perl 443263.pl syntax error at 443263.pl line 6, near "ignored" Execution of 443263.pl aborted due to compilation errors. With -x: C:\S>perl -x 443263.pl Hello, world!
    see perlrun for details

Log In?
Username:
Password:

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

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

    No recent polls found