What do you get if you capture?
if( $line =~ /^mail:\s+([\S]+)$/ ) { my $mail = $1; print "mail=$mail\n"; }
Dave
In reply to Re^3: Problem with ampersand and regex
by davido
in thread Problem with ampersand and regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |