Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Weird things...

by Wookie (Beadle)
on Jul 13, 2001 at 20:39 UTC ( [id://96473]=note: print w/replies, xml ) Need Help??


in reply to Weird things...

If you want to include settings from an external file - the easiest way I have found to do this is to have the external file like:
#!/usr/bin/perl $name = 'turd'; $blah = 'sample';
Then in your main program:
#!/usr/bin/perl -w use strict; use vars qw($name $blah) require './turd.pl';
That should allow you to read in the variables :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2025-03-18 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (56 votes). Check out past polls.