[Israel.pm] Importing variable

Meir Guttman meir at guttman.co.il
Tue Aug 31 03:05:55 PDT 2010

Try a few ways in this thread:

Basically, "do{}", "use ..." or "require ...", look these up in the CPAN
site documentation, e.g., http://perldoc.perl.org/functions/require.html


-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf
Of Levenglick Dov-RM07994
Sent: Tuesday, August 31, 2010 12:47 PM
To: Perl in Israel
Subject: [Israel.pm] Importing variable

Although this is bound to be the oldest question in the book, how do I
perform the C equivalent of #include "defines.h" in Perl 5.12
I want to have a separate file that will define variables accessible to
all parts of my script. If it makes the answer any easier, they can
become environment variables (i.e. inserted into %ENV).

Best Regards,
Dov Levenglick

Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list