Re: Execute include and return variables
From: Alok Bhatt (bhatt_alok_at_yahoo.com)
Date: 03/30/04
- Next message: Adrian N. Ichim: "RE: Incrementing count"
- Previous message: Bill Metzinger: "Re: psync, sym links, and Panther Revisited"
- Next in thread: R. Joseph Newton: "Re: Execute include and return variables"
- Reply: R. Joseph Newton: "Re: Execute include and return variables"
- Maybe reply: R. Joseph Newton: "Re: Execute include and return variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 05:11:44 -0800 (PST) To: Tomas Corral <tomascorral@novabinary.net>, beginners@perl.org
> 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
- Next message: Adrian N. Ichim: "RE: Incrementing count"
- Previous message: Bill Metzinger: "Re: psync, sym links, and Panther Revisited"
- Next in thread: R. Joseph Newton: "Re: Execute include and return variables"
- Reply: R. Joseph Newton: "Re: Execute include and return variables"
- Maybe reply: R. Joseph Newton: "Re: Execute include and return variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|