Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Need to process a tab delimted file *FAST*

by flounder99 (Friar)
on Mar 03, 2004 at 04:55 UTC ( [id://333457]=note: print w/replies, xml ) Need Help??


in reply to Need to process a tab delimted file *FAST*

if you are sure that your line is in the form tstamp\tkey1=val1\tkey2=val2...
my ($tstamp, %hash) = split /[\t=]/, $line;
will work

--

flounder

Replies are listed 'Best First'.
Re: Re: Need to process a tab delimted file *FAST*
by Anonymous Monk on Mar 03, 2004 at 06:51 UTC
    Alternatively,
    my ($tstamp, %hash) = $line =~ /([^\t=]*)/g

Log In?
Username:
Password:

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

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

    No recent polls found