A
Ali
Hi,
I have this small program and its giving error at file handler when I
put -w option like /urs/bin/perl -w
Program is as following
/usr/bin/perl -w
sub ReadInputFile {
my $FileName = $_;
my @lines;
open(FILE_H, "./ $FileName") or die "Oopp";
@lines = <FILE_H>;
close(FILE_H);
return @lines;
}
my $File = "test";
my @P_lines = ReadInputFile($File);
I am using Perl 5.005.
Thanks
I have this small program and its giving error at file handler when I
put -w option like /urs/bin/perl -w
Program is as following
/usr/bin/perl -w
sub ReadInputFile {
my $FileName = $_;
my @lines;
open(FILE_H, "./ $FileName") or die "Oopp";
@lines = <FILE_H>;
close(FILE_H);
return @lines;
}
my $File = "test";
my @P_lines = ReadInputFile($File);
I am using Perl 5.005.
Thanks