[Israel.pm] FW: What's wrong with the parsing....?

bc.other bc.other at gmail.com
Thu Jan 1 07:47:37 PST 2009

Please ignore the misspelling mistake on the pattrn (should be
pattern)....but still it doesn't work for me.

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf
Of Chanan Berler
Sent: Thursday, January 01, 2009 5:43 PM
To: 'Perl in Israel'
Subject: [Israel.pm] FW: What's wrong with the parsing....?

Hello All,

I tried to do the following, and retrieve the 20 as a value:

$pattern = '.*?Instances=(\d+)';
$str = 'Network traffic is Instances=20 bytes';

@ls = $str =~ m/($pattrn)/g;

print $ls;

but it didn't work for me.

Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list