Help for this page

Select Code to Download


  1. or download this
    while (<>) {
      my @params = split /\s*,\s*/;
    ...
        # $1 now contains which type you matched, $2 and $3 are the submat
    +ches, do what you will with them
      }
    }
    
  2. or download this
    while (<>) {
      my %params = map {
    ...
        ($k => [$1,$2])
      } split /\s,\s*/;
    }