[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Fwd: weird perl bug



Andy Lester wrote:
> The first statement matches, and leaves the internal matching pointer pointing
> after the first match, which means at the end of the first string.  Then, the second
> match tries to pick up at the same place, because of the /g flag.

The "/g" flag carries across multiple matching calls/lines?

Learn something new every day...  Thanks!

Dan

--
***************** ************* *********** ******* ***** *** **
"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************