Frankie wrote:
try:

require filename.pl;

rgds

Franki

That clue gave the solution.

But:

1.   Syntax is
require ("<filename>");

2.  Unfortunately, my $whatever definitions do not survive transition into the required (included) file.
In my case that was easily overcome by shifting those definitions into the required file, which means they probably don't survive transition back into the main program, which is in my case, rather good (the reduced scope is safer).

Thanks!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ron Stodden
Sent: Friday, 22 August 2003 2:45 PM
To: Mandrake Expert
Subject: [expert] Perl question - include?


I've searched the perl man pages fruitlessly, so let me ask of all you 
perl enthusiasts:

How do you do such a simple thing as to include another perl source file 
at some point in a perl source file?

No, "include" doesn't work.

-- 
Ron. [Melbourne, Australia]
"If you keep a green bough in your heart, the singing bird will come"
Get Fastest Mandrake downloader, English-only, from:
http://members.optusnet.com.au/ronst/       Click all ye faithful!




    

  

Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com

-- 
Ron. [Melbourne, Australia]
"If you keep a green bough in your heart, the singing bird will come"
Get Fastest Mandrake downloader, English-only, from:
http://members.optusnet.com.au/ronst/       Click all ye faithful!
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to