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

Re^5: parsing text files continued

by AltBlue (Chaplain)
on Aug 01, 2008 at 01:57 UTC ( [id://701564]=note: print w/replies, xml ) Need Help??


in reply to Re^4: parsing text files continued
in thread parsing text files continued

Ok, I guess you are in a Microsoft environment. Let's test using Strawberry Perl 5.10.0.1 under Microsoft Windows XP SP3:

C:\> perl -F, -lane "@F % 2 and push @D, {q{Stamp},@F} or $D[-1] = { % +{$D[-1] }, @F } }{ $,=q{,}; print @{$_}{qw(Stamp Login SearchResults +SearchLoad SearchCount Logout)} for @D" input.txt 1/3/2007 12:20:01 AM,12.588309,7.418672,9.432586,20:0.196329,0.823402 1/3/2007 12:49:22 AM,10.958312,,,41:0.483233,

Seems to work as expected, so I think you made some typo when trying to comply with Gate's rules.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2025-05-23 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.