Mr. Shawn H. Corey wrote:
> 
> $output_file =~ s/\r//g;
> # chomp only removes linefeed characters \n
> 
> # BTW, there is no such thing as a newline;
> # it is either a linefeed: \n ASCII LF 0x0A
> # or a carriage return: \r ASCII CR 0x0D

"\n" is inherited from the C programming language and is the newline escape
sequence.  On Unix and Unix-like systems the newline is equivalent to the
ASCII line feed character but on other systems it could be one or more
different characters.

http://en.wikipedia.org/wiki/Newline


John
-- 
use Perl;
program
fulfillment

-- 
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