#!/usr/bin/perl -wT use strict; my $text = "abc\ndef\r\nghi\njkl\n"; print "1.)T='$text'\n"; chomp($text); print "2.)T='$text'\n"; $text =~ s/[\r\n]+/ /g; print "3.)T='$text'\n";
-Blake
In reply to Re: Re: DOS characters
by blakem
in thread DOS characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |