develooper Front page | perl.perl5.porters | Postings from July 2008

Re: magic <<>> (was: Re: Changing magic <> without changing core)

Thread Previous | Thread Next
From:
Ed Avis
Date:
July 28, 2008 03:57
Subject:
Re: magic <<>> (was: Re: Changing magic <> without changing core)
Message ID:
loom.20080728T105458-861@post.gmane.org
Zefram <zefram <at> fysh.org> writes:

>There should be no @MAGIC_ARGV.

I agree, no need to duplicate the variables @ARGV or $ARGV.  MAGIC_ARGV can be a
tied filehandle that works on the existing variables.  It is easiest and most
maintainable IMHO to implement that in Perl code.  The existing C code handling
<ARGV> and <> in the Perl core just needs a small tweak to make it safe.

-- 
Ed Avis <eda@waniasset.com>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About