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

Re: Fun with open() on a string

Thread Previous | Thread Next
Peter Scott
July 30, 2008 17:14
Re: Fun with open() on a string
Message ID:
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

Peter Scott

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About