Re: How to conditionally substitute in files?

[email protected] ("Jenda Krynicky")
Newsgroups perl.beginners
Message-ID <[email protected]>
From: "John W. Krahn" <[email protected]>
> Siegfried Heintze (Aditi) wrote:
> > Can someone explain to why I have to remove the $ from $IN and $OUT
> > and remove the "my" in "my $IN" and "my $OUT" to make it work?
> 
> Older versions of Perl could not use lexical variables for filehandles.

And if you really do have to do that, your perl is so old that you 
really should consider updating it. I believe lexical filehandles 
were around since perl 5.6 (march 2000), but even if it was only 
since 5.8 (jul 2002) it's still plenty of time. Do yourself a favor 
and upgrade.

Jenda
===== [email protected] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.