in reply to Re: dos2ux shows cannot open file if it is greater than 2GB size
in thread dos2ux shows cannot open file if it is greater than 2GB size
It's closer to
open(my $in, '<', $ARGV[0]) or die $!; unlink($ARGV[0]); open(my $out, '>', $ARGV[0]) or die $!; while (<$in>) { s/\r\n/\n/; print($out $_); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: dos2ux shows cannot open file if it is greater than 2GB size
by shan_emails (Beadle) on Mar 14, 2013 at 14:45 UTC | |
by kennethk (Abbot) on Mar 14, 2013 at 17:25 UTC | |
by ikegami (Patriarch) on Mar 14, 2013 at 23:11 UTC | |
by Tux (Canon) on Mar 15, 2013 at 07:34 UTC | |
by ikegami (Patriarch) on Mar 16, 2013 at 18:43 UTC | |
by shan_emails (Beadle) on Mar 19, 2013 at 14:36 UTC | |
|
In Section
Seekers of Perl Wisdom