open (FIN, "test.csv") || die "Cannot Open the input file";
@file=<FIN>;
close (FIN);
## CSV files are separated by comma
## So, split the data by using of 'comma'
@get=split/,/, $file[1];
print "\nSecond word from second line : ", $get[1];
k_manimuthu
Junior Poster in Training
93 posts since Jun 2009
Reputation Points: 55
Solved Threads: 24
place 'my' infront the variable namee.
my @file=<FIN>;
my @get=split/;/, $file[1];
k_manimuthu
Junior Poster in Training
93 posts since Jun 2009
Reputation Points: 55
Solved Threads: 24