Hi I am trying to open some text files saved with the format CR (MAC) using perl, I am having the problem that the open function does'nt recongnize the newline character. The solution might be to open every file and saved them with a format CR+LF (DOS) but I have to open more than a hundred files in different folders and I don't want to go one by one. Please Monks I need some help here. This is the code I am using I am only including the opening part ;)
use strict;
use warnings;
@files = <*.tx>;
print "@files \n";
foreach $file (@files)
{
print " \n Working with file: $file \n";
my @lines=();
open(INFO, $file)or die "Could not open file: $!" ;
@lines=<INFO>;
close(INFO);
...
}