Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Issues with Split

by graff (Chancellor)
on Jun 14, 2016 at 10:34 UTC ( [id://1165545]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my ($type, $restofstring) = /^type=(\w+) (.+)$/;
        for $restofstring (split) {
            my ($key, $val) = split /=/, $restofstring;
            $hash{$type}{$key} = $val;
        }
    
  2. or download this
        my ($type, $restofstring) = /^type=(\w+) (.+)$/;
        for $token ( split ' ', $restofstring ) {
            my ($key, $val) = split /=/, $token;
            $hash{$type}{$key} = $val;
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-19 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found