Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Removing digits until you see | in a string

by MaxKlokan (Monk)
on Jan 08, 2007 at 09:29 UTC ( [id://593491]=note: print w/replies, xml ) Need Help??


in reply to Re: Removing digits until you see | in a string
in thread Removing digits until you see | in a string

The same, but one line shorter :-)
($index = $str) =~ s/\|.*//; $data_hash{$index} = $str;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-25 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found