a new Perl/Python a day

James Stroud jstroud at mbi.ucla.edu
Mon Jan 10 03:50:40 CET 2005


On Sunday 09 January 2005 05:31 pm, Scott Bryce wrote:
> Xah Lee wrote:
> > frustrated constantly by its inanities and incompetences.)
>
> I don't see what this has to do with Perl.

On Sunday 09 January 2005 04:28 pm, Matt Garrish wrote:
> What language are you an expert at? It certainly isn't Perl.


Very dry humor indeed!

<python>
bob = [1,2,3,4]
carol = [bob,bob]
# not inane dereferencing
print carol[1][3]
</python>

<perl>
$bob = [1,2,3,4] ;
$carol = [ $bob, $bob ] ;
# inane dereferencing
print "$carol->[1][3]\n" ;
</perl>




-- 
James Stroud, Ph.D.
UCLA-DOE Institute for Genomics and Proteomics
611 Charles E. Young Dr. S.
MBI 205, UCLA 951570
Los Angeles CA 90095-1570
http://www.jamesstroud.com/



More information about the Python-list mailing list