With an anchor that isn't within an alteration, "g" is
pretty useless. I'm not near a perl with Debugging turned on
so I can't tell you if it's a no-op, but I do know it isn't
a dangerous thing to have on there, just useless. =)
Update... And what merlyn said below. (yeesh $*)
--
$you = new YOU;
honk() if $you->love(perl) | [reply] |
Actually, if $* is 1, then $ matches any embedded newline as well as the end of the string, so s/.$//g; actually makes sense!
I doubt that was the case here, though. {grin}
-- Randal L. Schwartz, Perl hacker
| [reply] [d/l] [select] |