in reply to Re: local vs my
in thread local vs my
That's right. Filehandles only ever exist as package "variables" in typeglobs. You have to localise them with local you can't create lexical filehandles with my
What about this?
open(my $fh, 'somefile') || die $!;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: local vs my
by Arien (Pilgrim) on Sep 03, 2002 at 08:07 UTC | |
Re: Re: Re: local vs my
by davorg (Chancellor) on Sep 03, 2002 at 08:10 UTC | |
by Aristotle (Chancellor) on Sep 03, 2002 at 13:23 UTC |
In Section
Seekers of Perl Wisdom