* Thomas Maier <hay...@gmail.com> [2012-03-07 00:38]: > Hi David, > Mixed data types in nested data structure are possible in Perl as well: > %hash = (); > $hash{'mylist'} = [1,2,3]; > $hash{'mystring'} = 'string'; > $hash{'mynum'} = 4; > $hash{'anotherhash'} = {}; > $hash{'anotherhash'}{'anotherstring'} = 'string2'; > > Thomas
Hah. Fair enough :-) -- David Rock da...@graniteweb.com
pgpszglXkVXly.pgp
Description: PGP signature
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor