Dan Muey wrote:
> 
> $line =~ s/\<|\>|\,|\"//g;
> or
> $line =~ s/[<>",]//g;  # but you may have to backslash the chars here, not sure
> exactly, try it and see.

You don't have to backslash these characters as they are not special in
regular expressions

$line =~ s/<|>|,|"//g;

However using tr/<>,"//d is faster and doesn't use a regular expression
so you don't have to worry about which characters are special.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to