in reply to Re: Problem with ampersand and regex
in thread Problem with ampersand and regex
With that, I see no way to use the single quotes as suggested. Any other possible solutions??foreach my $line (@array) { if ($line =~ /mail: /) { my $mail = substr($line, $+[$#+] ); print "mail=$mail\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem with ampersand and regex
by davido (Cardinal) on Dec 19, 2012 at 21:11 UTC | |
by Anonymous Monk on Dec 19, 2012 at 21:23 UTC | |
by davido (Cardinal) on Dec 19, 2012 at 21:48 UTC | |
by Anonymous Monk on Dec 19, 2012 at 22:01 UTC | |
by davido (Cardinal) on Dec 19, 2012 at 22:09 UTC | |
| |
|
Re^3: Problem with ampersand and regex
by roboticus (Chancellor) on Dec 19, 2012 at 22:25 UTC |