Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Parsing named parameters

by chibiryuu (Beadle)
on Nov 07, 2005 at 16:42 UTC ( [id://506423]=note: print w/replies, xml ) Need Help??


in reply to Parsing named parameters

This one is pretty short:
my %options = (); while (<>) { my (undef, @options) = split /(\S+)\s*=/; %options = (%options, grep s/^\s*|\s*$//g, @options); }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found