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?In reply to Re^2: Extracting specific Data
by maheshkumar
in thread Extracting specific Data
by maheshkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |