Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Unusual coding arrangements in Perl

by philcrow (Priest)
on May 03, 2007 at 13:02 UTC ( [id://613373]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unusual coding arrangements in Perl
in thread Unusual coding arrangements in Perl

The DATA handle is special. It is opened for you on program start and is ready to read from the __DATA__ section at the bottom of the program:
chomp ( my @some_data = <DATA> ); #... __DATA__ lines of data here
This is sometimes a convenient way to separate code from conf or other data, while leaving them in the same file for easier installation.

Phil

The Gantry Web Framework Book is now available.

Log In?
Username:
Password:

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

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

    No recent polls found