in reply to qr// for Expect.pm problem
to:my $number_string = 'Your number is \+([0-9]+)';
Regular expressions are case-sensitive (Number).my $number_string = 'Your Number is \+([0-9]+)';
I determined this by removing characters from your regex until it matched. umber is \+([0-9]+) matched, but number is \+([0-9]+) did not. Reducing code is a common debugging technique.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: qr// for Expect.pm problem
by silentius (Monk) on Jun 25, 2011 at 19:20 UTC |