in reply to Re: Extracting specific Data
in thread Extracting specific Data
open(FILE, "<Google.txt") or die "Could not open file: $!"; while(<FILE>){ if(m/^Google/) { print $_; } }
My Google.txt has the following data
Google Google mahesh kumar sam
I am confused what if my file has multiple lines then?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extracting specific Data
by jayto (Acolyte) on Jun 26, 2012 at 13:24 UTC |