in reply to How to ignore special characters in a variable ?
You want to know whether $string appears in $line, and possibly, where within the line it appears. This exactly matches the specification of the index() builtin routine. Try typing perldoc -f index into an xterm window, or check out CPAN's search facility.
As Occam said: Entia non sunt multiplicanda praeter necessitatem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to ignore special characters in a variable ?
by Anonymous Monk on Feb 17, 2011 at 05:34 UTC |