I would like to print the result of a $var that has been s///'ed.
Sure, I can do this:
$var =~ s/\s+\).$/)./g;
print "$var\n";

but I was thinking more like this:
print $var =~ s/\s+\).$/)./g;

However, I get a "1" returned (to term), probably b/c one match is
found.
Is there any way I can get rid of that pesky number and just have the
$var string printed?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to