Tom Phoenix wrote:
On 3/10/06, tom arnall <[EMAIL PROTECTED]> wrote:

is there any way to get perl to interpret the contents of $f as a literal?

I think you're looking for the quotemeta() function. Hope this helps!

--Tom Phoenix
Stonehenge Perl Training


You can also use the \Q meta-character:

  s/\Q$f\E$g/$f$h/;

See `perldoc perlop` for details.

--

Just my 0.00000002 million dollars worth,
   --- Shawn

"Probability is now one. Any problems that are left are your own."
  SS Heart of Gold, _The Hitchhiker's Guide to the Galaxy_

"This statement is true but unprovable."
  Kurt Godel

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/


--
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