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

Re: Creative and *routine* use of so-called "magic" ARGV (was [perl#2783] Security of ARGV using 2-argument open)

Thread Previous | Thread Next
From:
Mark Mielke
Date:
July 29, 2008 14:40
Subject:
Re: Creative and *routine* use of so-called "magic" ARGV (was [perl#2783] Security of ARGV using 2-argument open)
Message ID:
488F8E47.7060507@mark.mielke.cc
Rafael Garcia-Suarez wrote:
> 2008/7/29 Aristotle Pagaltzis <pagaltzis@gmx.de>:
>   
>> We can discourage the unconsidered use of magic ARGV with a
>> warning. This would be the exact same strategy that C compilers
>> followed WRT `gets`, which it seems to me worked well for C. It
>> also seems to me that the people who are certain enough that they
>> want this feature are also people who won't shy away from muting
>> a warning.
>>     
>
> Recapitulating what was proposed by you, we are getting to :
> * not changing <>
> * introducing new, safer <<>> (or «» if I may joke about the
> utf8-cleanliness of the tokeniser)
> * a feature or a pragma then becomes not useful
> * a way to extend ARGV's magic would be nice, but needs not to be in the core
>   

I have no complaint with this approach.

Cheers,
mark

-- 
Mark Mielke <mark@mielke.cc>


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