Re: Execute include and return variables

From: Alok Bhatt (bhatt_alok_at_yahoo.com)
Date: 03/30/04


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



Relevant Pages

  • Re: Web browser question
    ... it seems that you are working to get stock quotes from ... the Yahoo finance. ... ' Loop until the page is fully loaded ... Do Until .ReadyState = 4 ...
    (microsoft.public.excel.programming)
  • Re: reliability problem with Finance::QuoteHist::Yahoo
    ... Sometimes it arises when quotes() is executed, and at other times, it ... Without even looking at your code my guess is that Yahoo! ... reason that free services change their page format is to block people from ... if an individual trader needs a reliable and accurate ...
    (comp.lang.perl.misc)
  • alternative to Yahoo commodity quotes???
    ... Yahoo does not provide current quotes for these metals. ... price for the spot market. ... up in Yahoo Finance, you get one single price from the end of day on ...
    (comp.lang.php)
  • Re: alternative to Yahoo commodity quotes???
    ... I need to get near-real-time commodity quotes for the spot price of ... Yahoo does not provide current quotes for these metals. ... price for the spot market. ...
    (comp.lang.php)
  • Re: PARSE HTML
    ... from Yahoo; you could probably adapt that part to do whatever ... possibly an already existing data format. ... go further than just downloading stock quotes now. ... checking for newly listed stocks, ...
    (comp.lang.rexx)