Help for this page

Select Code to Download


  1. or download this
    my ($key, $value) = split /\s*-\s+/, $line;
    
  2. or download this
    while (<>) {
       if (/^(\S+)\s*-\s+(.+)$/) {
    ...
          print "Badly formatted line: $_\n";
       }
    }