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

Re: FW: Alarums and Excursions (was [perl #2783] SecurityofARGV?using 2-argument open)

Thread Previous | Thread Next
From:
Abigail
Date:
July 29, 2008 03:51
Subject:
Re: FW: Alarums and Excursions (was [perl #2783] SecurityofARGV?using 2-argument open)
Message ID:
20080729105044.GC715@almanda
On Tue, Jul 29, 2008 at 11:40:02AM +0100, Ed Avis wrote:
> Abigail wrote:
> 
> >>Code using <SAFE_ARGV> explicitly would also fail to compile 
> >>with pre-5.12.
> >
> >No, it doesn't.
> 
> You're right.  (Why doesn't use strict check for filehandle names?)

Because that would make it harder to write:

    open F, "foo bar";
    while (<F>) { ... }

> 
> >You'd be better off to make it a feature; using the feature 
> >will prevent the code from running on older perls.
> 
> Is it possible to backport features via a CPAN module?


'say' existed as a CPAN module long before 5.10 was there. (Perl6::Say,
IIRC).


Abigail

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