[Israel.pm] Regex question: alternation between a delimiter and EOL
szabgab at gmail.com
Wed Jan 24 21:38:41 PST 2007
I might be still sleeping but wouldn't
split /;/, $line;
return you all the key=value strings you wanted?
if you wanted a hash of the pairs you would do
%h = split /[;=]/, $line;
On 1/24/07, Yossi Itzkovich <Yossi.Itzkovich at ecitele.com> wrote:
> I have a line like:
> Each fields ends with ";" except the last one in each line. value can
> not contain ";"
> How can I catch the pair of key=value ?
> I can't do something like:
> although I'd like too...
> So how can I do it ?
> Perl mailing list
> Perl at perl.org.il
Perl Training in Israel http://www.pti.co.il/
More information about the Perl