in reply to Re: Extract chunked/gzip data from pcap file (OT: Regex Usage)
in thread Extract chunked/gzip data from pcap file

If it did nothing, it would be harmless. Quite the opposite, it's a bug to use it there.
>perl -le"for (1..2) { print 'ab' =~ /a/g ? 'match' : 'no match' }" match no match

Replies are listed 'Best First'.
Re^3: Extract chunked/gzip data from pcap file (OT: Regex Usage)
by oakb (Scribe) on Jan 04, 2010 at 16:04 UTC

    Thank you for pointing out my error, AnomalousMonk and ikegami. I was misapplying /g because I mistakenly thought it was necessary when matching against multi-line data. I have removed /g from my program.