A quick question for the wizards--

Is it possible to do a substitution without compiling the pattern at all?

**************************************
#!/usr/bin/perl

$ss = "cool???";
$rs = "cool.";
$_ = "Perl is really cool???";
s/$ss/$rs/g;
print "$_\n";
**************************************

Thanks!

- B


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


Reply via email to