Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Extracting numerical information

by hdb (Prior)
on Jun 27, 2013 at 18:55 UTC ( #1041076=note: print w/replies, xml ) Need Help??


in reply to Extracting numerical information

Extracting all four numbers.

use strict; use warnings; my $string = "66.411716: ABCDE:M WALL 0x0164764a, RX 0x03bb9d42, TS 5" +; my @numbers = $string =~ /(0x[0-9a-f]+|\d+\.?\d*)/g; print "@numbers\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041076]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-04-24 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (443 votes). Check out past polls.