The problem arises with subroutines using variables declared at the same
level as the sub, e.g:
[-

my @fields = qw(a b);

print OUT "@fields";

sub testingit{
        print OUT "@fields";
}

-]

The first print gives the correct value ("a,b")
The second print gives an incorrect answer occasionally - seemingly an old
version of the variable.

Interestingly, if I declare @fields in [$ var $] the problem does not seem
to occur.

Cheers,

Jonny


BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
discounts 
and access to expert advice. 

FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
Terms and Conditions apply and are available online. 
Issued by Interactive Investor Trading Limited, regulated by the SFA.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to