Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

Perl: Créer et manipuler un tableau de Hash

Your ads will be inserted here by

Easy AdSense.

Please go to the plugin admin page to paste your ad code.


Download

#!/usr/local/bin/perl
 
@myArraysHash = (
    {
       username  => "sakoba",
       email     => "sakoba@linuxgrouper.com",
       privilege      => "00777",
    },
    {
       username => "Jean Bap",
       email    => "jeanb@linuxgrouper.com",
       privilege     => "00777",
    },
 
    {
       username => "Steave",
       email    => "steave@linuxgrouper.com",
       privilege     => "777777",
    },
  );
for $href ( @myArraysHash ) {
    print "{ ";
    for $role ( keys %$href )