> hi,
>
> I simply wished to strip out all the ">" from a text file. below is the
> script and the error that is reported. I cannot see anything wrong, it's
> such a simple piece of code! can any one help, are my eyes deceiving me?
[localhost:~] tor% perl -e 'while(<>) {s/\>//g; print;}'
>>>>>>1>>>>>>>>>2>>>>>>>>>>3
123
1>2>3>4>5>6>7>8>
12345678
> #!/usr/bin/perl -w
use strict;
> open(INPUT, "letter.txt") || die "can't open file: $!";
> open(OUTPUT, ">newletter.txt");
>
> while (<INPUT>){
s/\>//g;
> print OUTFILE;
> }
Tor
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]