On 07/26/2006 02:59 PM, Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...

open ( IN, "<$_[0]" )||die "Can't open DAT source file: $tempFile
$!\n";
        while (<IN>){s/\r/\n/g;@lines = <IN>;}#
        close (IN);
        
        foreach $line (@lines)
        {


Unix text files don't use \r in the line terminator. Under Unix, \n by itself is the line terminator.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to