Help for this page

Select Code to Download


  1. or download this
    print DATA Dumper( \%somehash );
    
  2. or download this
    open DATA, "<$datafile" or die "$!";
    {
        local $/;
        %somehash  = %{ eval <DATA> };
    }
    
  3. or download this
    Can't use an undefined value as a HASH reference at somescript.pl line
    + 22, <DATA> chunk 1.
    
  4. or download this
    %somehash  = %{ eval { <DATA> } };
    
  5. or download this
    Ambiguous use of %{eval{...}} resolved to %eval{...} at somescript.pl 
    +line 22.
    Global symbol "%eval" requires explicit package name at somescript.pl 
    +line 22.
    syntax error at somescript.pl line 22, near "%{ eval { "
    syntax error at somescript.pl line 23, near "}"
    Execution of somescript.pl aborted due to compilation errors.