in reply to Re: Why \n matches but not $^? (weight)
in thread Why \n matches but not $^?

Thanks heaps, Tye!

A prompt, accurate and exhaustive response. (Well, I'm almost exhausted from just reading it). Nice work!

Yes - I meant "AB-EF" when I wrote "ABC-DEF". Sorry - typo.

PS: I assume the -l switch is superfluous in your answers?
PPS: Any ideas why those 1st 2 1-liners you gave don't work? They look OK from this angle.

Thanks again.

  • Comment on Re^2: Why \n matches but not $^? (weight)

Replies are listed 'Best First'.
Re^3: Why \n matches but not $^? (weight)
by ikegami (Patriarch) on Oct 13, 2008 at 13:56 UTC

    I assume the -l switch is superfluous in your answers?

    You assume wrongly. perlrun

Re^3: Why \n matches but not $^? (practice)
by tye (Sage) on Oct 14, 2008 at 00:14 UTC
    Any ideas why those 1st 2 1-liners you gave don't work? They look OK from this angle.

    Sure. Why don't you practice the methods moritz and I offered for helping to figure out how a regex was parsed.

    - tye