Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Parsing Data logger files ...

by RedTussock (Acolyte)
on Oct 07, 2012 at 00:17 UTC ( #997647=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing Data logger files ...
in thread Parsing Data logger files ...

Awesome thanks ... And the open the folder and process all files in it would look something like ..
opendir XX, "/somefile/somewhere" or die "Couldn't open the directory +: $!"; while ($_ = readdir (XX)) { $/ = "\n1="; while (<>) { my @fields = split /\n/; s/^[1-6]=// for @fields; print +(join ',', @fields[0 .. 5]), "\n"; }
Sorry my perl scripting is newb in the extreme ... :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997647]
help
Chatterbox?
[&lt; &amp; &gt;]: in democracies people get the politicians they deserve

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-12-15 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (442 votes). Check out past polls.

    Notices?