> Hi all: Hi Tomas, > I cannot include a file so it can return all the > variables I assigned. > #FILE1.pl > $var1= "tom"; > #FILE2.pl > do FILE1.pl > #open $prog,'FILE1.pl' or die $!, > #use 'FILE1.pl' > #import 'FILE1.pl'
In FIle2: do "FILE1.pl" (use double quotes) If you want to use "use <xxxx>", rename xxxx to file1.pm and use "use file1", instead of "use file1.pm". Hope that helps. :-) Alok __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
