Help for this page

Select Code to Download


  1. or download this
    bash-2.03$ perl -e'$foo = "bar"; $$foo = 1; print "$bar\n"'
    1
    
  2. or download this
    foreach (@array) {
      my ($key, $val) = split(/=/, $_);
      $vars{$key} = $val;
    }
    
  3. or download this
    foreach (@array) {
      next unless /var(\d+)=(.*)/;
      $values[$1] = $2;
    }