Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: How can i extract a number from an string

by jplindstrom (Monsignor)
on Jan 22, 2009 at 17:25 UTC ( [id://738233]=note: print w/replies, xml ) Need Help??


in reply to Re: How can i extract a number from an string
in thread How can i extract a number from an string

/^BS(\d)/ or warn("Invalid frobniz id ($_)\n"), next;

Or possibly die on bad input. Never ignore it.

(And, it's better to be explicit about the loop variable IMHO, $_ is a missed opportunity to write self documented code).

/J

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-03-29 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found