#!/usr/bin/perl -w # this code acts as a simple DOS -> UNIX newline filter # set input line separator to CRLF $/ = "\r\n"; # set output line separator to LF (so we can just say 'print' # to do 'print "$_\n"') $\ = "\n"; # do it! print while (<>);
In reply to Re: Converting DOS perl to Unix
by mdillon
in thread Converting DOS perl to Unix
by Pmint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |