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

Re: Parsing attributes in one line using map

by jdporter (Canon)
on Sep 25, 2006 at 14:53 UTC ( #574743=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    split /=/
    
  2. or download this
    split /=/, $_, 2
    
  3. or download this
    my %attrs = $attr =~ /([^=,]+)=(.*?)(?:(?=,[^=,]+=)|$)/g;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-01-27 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?