Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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 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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-06-19 13:29 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.