Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by MaxKlokan (Monk)
on Jan 08, 2007 at 09:29 UTC ( #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
Node Status?
node history
Node Type: note [id://593491]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2020-10-29 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?