in reply to How to Run/Convert(?) Script Built on 5.8.4 to 5.004
produces with perl -c (can run perl -c on anything including .pm files)open my $fh, "<file.txt" or die "blah $!\n";
So you resolve it with...Can't use an undefined value as filehandle reference at blah.pl line 1 +23
It shouldn't take too long -- if there are too many, write a converter that implicitly splits by assigning $/ = ';', pattern-matches for each issue and does the conversion - it's not much work actually.use FileHandle # ... my $fh = new FileHandle(); $fh -> open( "< file.txt" ) or die "blah $!\n";
You'll also have to read release notes of intervening versions.
^M Free your mind!
|
|---|