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 28, 2008 22:08
Subject:
Re: Creative and *routine* use of so-called "magic" ARGV (was [perl#2783] Security of ARGV using 2-argument open)
Message ID:
488EA5C5.9050500@mark.mielke.cc
Tom Christiansen wrote:
> [ how to support magical @ARGV better than today ]
> If you feed an @ARGV or <STDIN> like this:
>
>     /etc
>     -
>     /etc/passwd 
>     /tmp/.X11-unix/X0 
>     foo.gz 
>     http://somewhere.com/path/to/foofile.gz 
>     /etc/motd 
>     /dev/tty 
>     /tmp/fifo 
>     ~/.exrc
>   

Very cool. Obviously, I wouldn't use it in a place where @ARGV can be 
passed in via a web page form. But for simple practicality for everyday 
usage with the flexibility for a program to be used in scenarios never 
imagined by the original author? Very cool. This is really how I see the 
origin of Perl. Solving practical problems in ways other languages were 
a decade or so late in solving.

If I want to write a secure application, I'm not sure I would choose 
Perl. If I did use Perl, or any other language, I would expect to have 
to put in effort and have a clue.

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