in reply to Re: How to ignore special characters in a variable ?
in thread How to ignore special characters in a variable ?
/Q.../E turns out to be better option than quotemeta. Just in case a beginner happens to read this node - remember - quotemeta modifies your string by adding "\" before special characters. If your string is a variable (like $string in above example), it becomes unusable.
Having fun with perl... :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to ignore special characters in a variable ?
by ikegami (Patriarch) on Feb 17, 2011 at 06:54 UTC | |
|
Re^3: How to ignore special characters in a variable ?
by Anonymous Monk on Feb 17, 2011 at 05:24 UTC | |
by Anonymous Monk on Feb 17, 2011 at 06:45 UTC |