Question #1:
If \n matches any one of the platform-specific newline character
sequences, does that mean that if I have a string like this[*]:
"foo bar baz\rfoo bar baz\nfoo bar bar\r\n"
that \n will match in 3 places? How do you tell perl that you only
want \n to match a specific newline sequence? And if \n does match in
3 places in that string, does that mean that ^^ and $$ will also match
in 3 places?
[*] In my string \r and \n are substituting for carriage return
and line feed respectively.
Question #2:
Why are we storing the hypothetical's sigil in the match object?
Question #3:
Related to question #2, if I didn't use hypotheticals, how would I
access the Nth match of a repitition? For instance, in E5, there's an
example that looks like this:
rule file { ^ @adonises := <hunk>* $ }
If I didn't have the hypothetical @adonises, how would I retrieve the
3rd hunk matched? Would I need to write it like so:
rule file { ^ <hunks> $ }
rule hunks :e { (<hunk>) }
and then access it with $0{file}{hunks}[2] ?
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]