in reply to (tye)Re: Upgrading to new perl environment
in thread Upgrading to new perl environment
This particular line of code if ($sb =~ /<$fi>\s*(.*?)\s*<\/$fi>/is) { is attempting to capture all the substrings that are taged by string <$fi>...</$fi>In list context, it returns a list of the substrings matched by any capturing parentheses in the regular expression. If there are no parentheses, it returns a list of all the matched strings, as if there were parentheses around the whole pattern.
It is highly possible that I am missing something, but if this is the intended case, do you still think that there is a bug in the application that was tolerated in 5.005 but not in 5.6.0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: Upgrading to new perl environment
by tye (Sage) on Jul 26, 2001 at 23:55 UTC | |
by skeeterpop (Initiate) on Jul 27, 2001 at 00:33 UTC |