Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    use strict;
    use warnings;
    %h=('1', 'one', '2', 'two', '3', 'three');
    
  2. or download this
    @arr=(1,2);
    
  3. or download this
    foreach $key(keys %h)
    {
    push(@arr,$h{$key});
    }
    print @arr;
    
  4. or download this
    foreach $key(keys %h)
    {
    push(@arr,$$h{$key});
    
  5. or download this
    print "@arr\n";
    }
    
  6. or download this
    push @arr, $href->{$key};