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

Re: Fun with open() on a string

Thread Previous | Thread Next
From:
Peter Scott
Date:
July 30, 2008 17:14
Subject:
Re: Fun with open() on a string
Message ID:
pan.2008.07.31.00.14.16.944963@PSDT.com
On Wed, 30 Jul 2008 16:54:33 +0200, H.Merijn Brand wrote:
> $ perl -e 'close STDIN; eval "use CPAN::Debug"; print <>'
> 
> =head1 LICENSE

> will show you that you can play with this knowledge. You don't even
> need the open.

Thereby leading to the fragile but gratifying (and inevitable)

% perl -lan -0777 -E 'BEGIN{close STDIN; require CGI; } print
"@F[6158,12205,17280,16572],"'

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.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