http://qs1969.pair.com?node_id=878625

mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

I am trying to get the number into $acct that follows "Account number" in a string. This should work but it is not, what am I doing wrong? Thanks!

$page2 = "Account number 12345678"; if ( $page2 =~ m/Account number (.*?)/g ) { $acct = $1; print "acct = $acct\n"; }