D
Deepu
Hi all,
I would like to know when reading a file which has around 10 - 20 lines
in it. How can it be done to ignore 1st line and start reading from 2nd
till last.
Example:
FILE0 ## the name will not be same in all the other files ##
FILE1
FILE2
FILE3
FILE4
FILE5
Now i need to read from 2nd line. Can somebody please help me on this.
To read the whole file, i just use:
open (FH, "FileName") || die "Can't open";
while (<FH>) {
push (@array, $_);
}
Thanks
Deep
I would like to know when reading a file which has around 10 - 20 lines
in it. How can it be done to ignore 1st line and start reading from 2nd
till last.
Example:
FILE0 ## the name will not be same in all the other files ##
FILE1
FILE2
FILE3
FILE4
FILE5
Now i need to read from 2nd line. Can somebody please help me on this.
To read the whole file, i just use:
open (FH, "FileName") || die "Can't open";
while (<FH>) {
push (@array, $_);
}
Thanks
Deep