Help for this page

Select Code to Download


  1. or download this
    my @vars = split(/\s*,\s*/,$rec);
    
  2. or download this
    open (DATA, "<data.txt") or die "Can't open file $!\n";
      @DATA = <DATA>;
    ...
          # now insert into the hash
          $var_hash{$vars[2]} = 'whatever';
      }