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.
In reply to Re: How to ignore special characters in a variable ?
by TomDLux
in thread How to ignore special characters in a variable ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |