Help for this page

Select Code to Download


  1. or download this
    use 5.010_001;
    
    ...
        say @hash{ qw# one two # };
        say @hash{ (qw# one two #) };
    }
    
  2. or download this
    Scalar value @hash{ qw# one two # } better written as $hash{ qw# one t
    +wo # } at mytest.pl line 12.
    um    dois
    um    dois
    
  3. or download this
    Scalar value @hash{ qw# one two # } better written as 
    $hash{ qw# one two # } at mytest.pl line 13 (#1)
    ...
    hash element as a list, you need to look into how references 
    work, because Perl will not magically convert between scalars 
    and lists for you.  See perlref.