[Israel.pm] Regex question: alternation between a delimiter and EOL

Jason Elbaum jason.elbaum at gmail.com
Wed Jan 24 10:50:28 PST 2007


On 1/24/07, Gaal Yahas <gaal at forum2.org> wrote:

> Possibly easier not to use a regexp here.
>
> @vals = map { s/key=// or die "bad input: $_"; $_ } split /;/, $string;

So you used two regexps instead?

:-)

Jason Elbaum



More information about the Perl mailing list