CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=43200
server: Combust/Plack (Perl)
vary: Accept-Encoding
content-encoding: gzip
content-length: 2253
content-type: text/html; charset=utf-8
last-modified: Sat, 11 Oct 2025 15:45:52 GMT
date: Sat, 11 Oct 2025 15:45:52 GMT
strict-transport-security: max-age=15768000
RE: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open) - nntp.perl.org
Front page | perl.perl5.porters |
Postings from July 2008
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About

RE: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open)
Thread Previous | Thread NextFrom:
Ed AvisDate:
July 28, 2008 07:47Subject:
RE: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open)Message ID:
7A5C308A1A3D554B8B8C0E331F7D2BB10ECCA8@wcl-exc.wcl.localMark Mielke <mark@mark.mielke.cc> wrote [magic handling of special characters in <>] >I think the only >part I'm missing to be 50% + 1 convinced personally is a >survey or some other measure on how widely used these features >are. I think this is mostly unknowable. We've done a little survey here and IIRC the answers were - I might have used it once on Windows (me). - You can use the trailing newline stripping for some idiom where you set ARGV from input data without chomping. - I expect tchrist will give examples of where he likes it and uses it. But mostly, even those who dislike the idea of making <> un-magic were not really using the special features except for golfing. And people on this list are about the most expert perl users you will find. If even we don't use it, chances are that hardly anyone else does. You suggested that an 'ordinary user' of a program that happens to be written in perl and using <> might start to rely upon the magic behaviour. But this seems to me unlikely if the magic is not mentioned in the program's documentation (and it never is). Only someone who already knew perl would do so. (Indeed, someone who knew more about the behaviour of <> than the original programmer knew, or at least documented.) And most of the time, I would expect people to prefer the shell's standard facilities for redirecting input from a pipeline, which work with all programs. -- Ed Avis <eda@waniasset.com> ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit https://www.messagelabs.com/email ______________________________________________________________________Thread Previous | Thread Next
- Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open) by Tom Christiansen
- Re: Alarums and Excursions (was [perl #2783] Security of ARGVusing 2-argument open) by Aristotle Pagaltzis
- Re: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open) by Zefram
- RE: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open) by Ed Avis
- RE: Alarums and Excursions (was [perl #2783] Security of ARGVusing 2-argument open) by Mark Dominus
- Re: Alarums and Excursions (was [perl #2783] Security of ARGV using2-argument open) by Glenn Linderman
- Re: Alarums and Excursions (was [perl #2783] Security of ARGVusing 2-argument open) by Abigail
- Re: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open) by Tels
- Re: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open) by Rafael Garcia-Suarez
- Re: Alarums and Excursions (was [perl #2783] Security of ARGV using2-argument open) by Andy Dougherty
- Re: Alarums and Excursions (was [perl #2783] Security of ARGVusing 2-argument open) by Dave Mitchell
- Re: Alarums and Excursions (was [perl #2783] Security of ARGVusing 2-argument open) by Abigail
- Re: Alarums and Excursions (was [perl #2783] Security of ARGV using2-argument open) by H.Merijn Brand
- RE: Alarums and Excursions (was [perl #2783] Security of ARGVusing 2-argument open) by Ed Avis
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About