- Original Message -
From: "Adrian Farrell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 5:25 PM
Subject: invisible syntax error
> hi,
>
> I simply wished to strip out all the ">" from a text file. below is the
> while (){
> if(S/\>//){
'>' does not have to be escaped (this is not an error, it is the capitalized s as you
mentioned)
You can just write this as s/>//.
$_ = a>a>a>a>';
s/>//g;
print "$_\n";
This prints
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
> 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;}'
>>
oops, ignore last mail, having one of those days, there was an accidental
capitalization :}
_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
To unsubscribe, e-mail:
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?
thanks,
Adrian
#!/usr/bin/perl -w
open(INPUT, "letter.txt") || die "c