Ilya Zakharevich on Thu, 15 Jan 2004 19:25:38 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: desc system on cygwin |
On Thu, Jan 15, 2004 at 03:07:57PM +0900, ?$BLZB<4`?(B wrote: > The problem is, in src/desc/PARI/822.pm (line 46 from above), > 43 sub read > 44 { > 45 > 46 local $/="\n"; > 47 local *FILE; > 48 > 49 my ($ret,$file,$check)=@_; > 50 $check=0 if (!defined($check)); > > input record separator $/ is assumed to be "\n", but on Cygwin, this is > "\r\n". You have some big problems with your installation of Perl. Perl should convert line-ending into "\n" - unless the file is opened in binary mode. The code above is 100% correct. Hope this helps, Ilya