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 31, 2008 02:26
Subject:
Re: Fun with open() on a string
Message ID:
pan.2008.07.31.09.26.34.973116@PSDT.com
On Thu, 31 Jul 2008 07:11:21 +0200, Bram wrote:
> Citeren Peter Scott <Peter@PSDT.com>:
> 
>> On Thu, 31 Jul 2008 06:40:52 +0200, Aristotle Pagaltzis wrote:
>>>     $ perl -lan -0777 -e 'BEGIN{close STDIN; require CGI; } print   
>>> "@F[6158,12205,17280,16572],"'
>>>     you passed sub protections,
>>
>> That's not what I posted.  You have -e instead of -E.  Size matters :-)
> 
> perl-5.10.0 -lan -0777 -E 'BEGIN{close STDIN; require CGI; } print  
> "@F[6158,12205,17280,16572],"'
> Just another Perl hacker,
> 
> perl-5.10.0 -lan -0777 -e 'BEGIN{close STDIN; require CGI; } print  
> "@F[6158,12205,17280,16572],"'
> Just another Perl hacker,
> 
> perl-5.10.0 -MCGI -wle 'print $CGI::VERSION;'
> 3.29

Sigh.  Yes.  The -E was my cute way of saying require 5.010, which makes
it more likely that CGI will be version 3.29, which is in the 5.10 core.
Aristotle's version of CGI is 3.15, which is core for 5.8.8.

-- 
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