Re: suppress regex parsing in interpolated string
- From: "DJ Stunks" <DJStunks@xxxxxxxxx>
- Date: 28 Feb 2006 12:06:48 -0800
stevenkobes@xxxxxxxxxxx wrote:
I have
s/$foo/$bar/;
But $foo and $bar might have funny characters [ ] { } etc., and I want
them taken literally rather than parsed as regular expressions.
How can I do this substitution? Thanks.
perldoc -f quotemeta
-jp
.
- References:
- suppress regex parsing in interpolated string
- From: stevenkobes@xxxxxxxxxxx
- suppress regex parsing in interpolated string
- Prev by Date: Re: References as Hash Keys, Tree Structures (Newbie) (Was: simple pointer operations (newbe))
- Next by Date: Re: concurrency with DBI questions
- Previous by thread: Re: suppress regex parsing in interpolated string
- Next by thread: The Perl Review, Spring 2006: The Sudoku Issue
- Index(es):
Relevant Pages
|
|