Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How can i extract a number from an string

by JavaFan (Canon)
on Jan 22, 2009 at 11:52 UTC ( [id://738122]=note: print w/replies, xml ) Need Help??


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

my ($number) = $var1 =~ /([0-9]+)/; # Or my $number = substr $var1, 2, 1;

Log In?
Username:
Password:

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

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

    No recent polls found