Help for this page

Select Code to Download


  1. or download this
    my $h = { foo => 1, bar => 2 };
    @{ $h }{qw/ foo bar /} = ( 667, 889 );
    # or postfix form:
    # $h->@{qw/ foo bar /} = ( 667, 889 );
    
  2. or download this
    my @ar = values %$h;
    # or postfix form:
    # my @ar = values $h->%*;
    
  3. or download this
    perldoc perldata
    perldoc perlref