In addition to the /s modifier that ikegami mentioned, your script could never match across multiple lines since you're only reading in and working on one line at a time. Unless you set your input record separator ($/, documented in perlvar) to slurp mode, chunk mode, or some alternate record separator, your script will only read in one line at a time.
Dave
In reply to Re: trying to do a simple search
by davido
in thread trying to do a simple search
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |