Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Read in a file containing the criteria for a program when it runs

by brx (Pilgrim)
on Jul 18, 2012 at 21:34 UTC ( [id://982539]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Read in a file containing the criteria for a program when it runs
in thread Read in a file containing the criteria for a program when it runs

In this example, I use __DATA__ section and read it with <DATA>. This way, all is included in one file.

But you will probably use an external file. To do that, just delete my $line = <DATA>; and while ($line = <DATA>) { (and __DATA__ section). Then uncomment the three lines.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-28 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found