Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: qr// for Expect.pm problem

by toolic (Bishop)
on Jun 25, 2011 at 19:17 UTC ( [id://911390]=note: print w/replies, xml ) Need Help??


in reply to qr// for Expect.pm problem

Change:
my $number_string = 'Your number is \+([0-9]+)';
to:
my $number_string = 'Your Number is \+([0-9]+)';
Regular expressions are case-sensitive (Number).

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
    Thank you so much!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://911390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found