simatics has asked for the wisdom of the Perl Monks concerning the following question:
$line = $array_value;<br> $_ = $line;<br> /^(.?)\n/;<br> print $1.$2.$3."\n";<br>
$line =~ tr/\015//;<br> $line =~ tr/\n//;<br> $line =~ tr/\r//;<br>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove new line characters
by graff (Chancellor) on Apr 17, 2007 at 04:31 UTC | |
by cdarke (Prior) on Apr 17, 2007 at 07:18 UTC | |
by graff (Chancellor) on Apr 17, 2007 at 14:51 UTC | |
by Anonymous Monk on Apr 17, 2007 at 06:20 UTC | |
by simatics (Initiate) on Apr 18, 2007 at 05:27 UTC | |
by simatics (Initiate) on Apr 18, 2007 at 05:34 UTC | |
by graff (Chancellor) on Apr 18, 2007 at 05:37 UTC | |
|
Re: Remove new line characters
by swampyankee (Parson) on Apr 17, 2007 at 04:05 UTC | |
by simatics (Initiate) on Apr 18, 2007 at 05:23 UTC | |
by graff (Chancellor) on Apr 18, 2007 at 06:11 UTC |