On Fri, Jan 25, 2002 at 12:50:54PM -0500, Bill -OSX- Jones wrote:
> So, to come back, allow me to ask:
> 
> $_ = "a planet of Perl Fun";
> for $y(qw/a e f l n o p r t u/){$x||=y/$y//%2; print " $y $x \n"}
> 
> What is $x being set to and why ?

        Nothing interesting, as y/// doesn't extrapolate. Try

$_ = "a planet of Perl Fun";
for $y(qw/a e f l n o p r t u/){$x||=eval"y/$y//%2"; print " $y $x \n"}

        instead. 

Joy,
`/anick, saying too much and not enough, all at the same time

-- 
A Canadian is someone who drinks Brazilian coffee from an English teacup, 
and munches a French pastry while sitting on his Danish furniture, having 
just come home from an Italian movie in his German car. He picks up his 
Japanese pen and writes to his Member of Parliament to complain about the 
American takeover of the Canadian publishing business.  
                                                 - Campbell Hughes, 1973.

Reply via email to