Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Matching a keyword, value and optional comma delimited values

by mirod (Canon)
on Dec 22, 2000 at 01:33 UTC ( [id://47925]=note: print w/replies, xml ) Need Help??


in reply to Matching a keyword, value and optional comma delimited values

A dirty solution:

($keyword, $value, @opt)= split /\s*[=,]\s*/;

It works only if you have no extra = or , in your data.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://47925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-29 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found