in reply to Modifying a regex
Coupl'a notes:while (my $line = <IN>) { #next unless $line =~ m{^(\S+) (\d+) (.*)}; next unless $line =~ m{^(\S+) NA(\d+) (.*)}; # Now 'NA' is not captured. my ($site, $userID, $data, $data2) = ($1, $2, $3, $4); $user{$userID}{$site} = $data, $data2; }
|
|---|