[perl-python] 20050118 keyed list

Jürgen Exner jurgenex at hotmail.com
Tue Jan 18 22:16:18 EST 2005


Tassilo v. Parseval wrote:
> Also sprach Jürgen Exner:
>
>> Xah Lee wrote:
>
>>> © %a = ('john',3, 'mary', 4, 'jane', 5, 'vicky',7);
>>> © use Data::Dumper qw(Dumper);
>>> © print Dumper \%a;
>>
>> Wow, my compliments. The very first time that using Data::Dumper
>> actually may do something useful (formats the data more nicely).
>> Still, why you are passing a reference is beyond me.
>
> How else would you use 'Dumper' on a hash?

Well, fair enough. If you do a plain
    print Dumper(%a);
you do loose a lot of the nifty pretty printing that is provided by Dumper 
otherwise.

jue 





More information about the Python-list mailing list