print 'nested list is', Dumper [EMAIL PROTECTED];
Rubbish. That's not a nested list. @b is an *ARRAY*, whose third element
is a *REFERENCE* to another *ARRAY*.
:: # to extrat element from nested list,
:: $c = $b[2]->[1];
:: print '$b[2]=>[1] is', $c
t know Perl, but now it turns
out, you don't know Python either.
Go away.
Abigail
--
package Z;use overload'""'=>sub{$b++?Hacker:Another};
sub TIESCALAR{bless\my$y=>Z}sub FETCH{$a++?Perl:Just}
$,=$";my$x=tie+my$y=>Z;print$y,$x,$y,$x,"\n";#Abigail
--
http://mail.python.org/mailman/listinfo/python-list
d post these all as part of the same thread?
Just killfile him, and stop replying. Remember, don't feed the trolls.
Abigail
--
my $qr = qr/^.+?(;).+?\1|;Just another Perl Hacker;|;.+$/;
$qr =~ s/$qr//g;
print $qr, "\n";
--
http://mail.python.org/mailman/listinfo/python-list
ird, learn Perl (optional). :)
Just leave the third option out. Let him learn Python. We don't want him. ;-)
Abigail
--
sub f{sprintf'%c%s',$_[0],$_[1]}print f(74,f(117,f(115,f(116,f(32,f(97,
f(110,f(111,f(116,f(104,f(0x65,f(114,f(32,f(80,f(101,f(114,f(0x6c,f(32,
f(0x48,f(97,f(
Skip Montanaro ([EMAIL PROTECTED]) wrote on CLXVIII September MCMXCIII
in news:[EMAIL PROTECTED]>:
__
__ abigail> @@ No. Second, learn Python. Third, learn Perl (optional). :)
__
__ abigail> Just leave the third option out. Let him learn Python. We don't
__
because you don't
like the people in rec.food.drink.coffee.
Abigail
--
perl -wle 'print "Prime" if (0 x shift) !~ m 0^\0?$|^(\0\0+?)\1+$0'
--
http://mail.python.org/mailman/listinfo/python-list
Yesterday I downloaded and installed Python 3.1 and working through some
examples but I have hit a problem
>>> a = raw_input("Enter a number" )
Traceback (most recent call last):
File "", line 1, in
a = raw_input("Enter a number" )
NameError: name 'raw_input' is not defined>>>a = raw_input
Thank You
--
http://mail.python.org/mailman/listinfo/python-list