in reply to trying to do a simple search
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: trying to do a simple search
by texuser74 (Monk) on Jan 22, 2009 at 07:04 UTC | |
by davido (Cardinal) on Jan 22, 2009 at 07:19 UTC | |
by ig (Vicar) on Jan 22, 2009 at 17:52 UTC | |
by texuser74 (Monk) on Jan 29, 2009 at 03:50 UTC |