Help for this page

Select Code to Download


  1. or download this
    if (m#([^\|]+)\|([^\|]+)$#) {
      $a=$1; $b=$1;
    }
    else { chomp; die "Bad line: $_\n"; }
    
  2. or download this
    ($a,$b,$c) = m/(your)(regex)(here)/;