Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl Log file extraction help required

by protist (Monk)
on Sep 22, 2012 at 12:08 UTC ( #995093=note: print w/replies, xml ) Need Help??


in reply to Perl Log file extraction help required

just to illustrate a different approach:
$fn = "/home/t8.g"; open $fp, "<",$fn" or die "Error in write:$!"; while (<$fp>){ print $1 while $_=~s/{(.*?)}//; }
Here is a one liner for you to see it in action. This takes user input.
perl -ne 'print $1."\n" while $_=~s/{(.*?)}//;'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2016-09-27 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (506 votes). Check out past polls.