Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Matching a keyword, value and optional comma delimited valuesby mirod (Canon) |
on Dec 22, 2000 at 01:33 UTC ( [id://47925]=note: print w/replies, xml ) | Need Help?? |
A dirty solution: ($keyword, $value, @opt)= split /\s*[=,]\s*/;It works only if you have no extra = or , in your data.
In Section
Seekers of Perl Wisdom
|
|