> > > A quick question for the wizards-- > > Is it possible to do a substitution without compiling the pattern at all? > > ************************************** > #!/usr/bin/perl > > $ss = "cool???";
$ss = "\Qcool???\E"; > $rs = "cool."; > $_ = "Perl is really cool???"; > s/$ss/$rs/g; > print "$_\n"; > ************************************** > perldoc perlre for more: "\Q quote (disable) pattern metacharacters till \E" HTH, http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>