in reply to Re^2: What it mathches`
in thread What it mathches`
Reading perlre, I see this:
(Emphasis mine.) It then goes on to say:
- \ Quote the next metacharacter
- ^ Match the beginning of the line
By default, the "^" character is guaranteed to match only the beginning of the string, the "$" character only the end (or before the newline at the end), and Perl does certain optimizations with the assumption that the string contains only one line.(Emphasis still mine.) That's where I got the "optimisation" part. As to $*, I'm using perl 5.8. The OP didn't mention version of perl, and I've not been paying attention to his posting history to note what version he's been using, so felt free to use whichever perl I had handy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What it mathches`
by ikegami (Patriarch) on Aug 17, 2009 at 15:51 UTC | |
by Tanktalus (Canon) on Aug 18, 2009 at 04:33 UTC | |
by ikegami (Patriarch) on Aug 18, 2009 at 06:46 UTC |