Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: how to split full digit number?

by Anonymous Monk
on May 06, 2013 at 12:48 UTC ( #1032272=note: print w/ replies, xml ) Need Help??


in reply to how to split full digit number?

simply like so:

#!/usr/bin/perl use warnings; use strict; my $f = 'chap 89.9'; if($f=~m/chap\s+?(\S+)/) { print " $1 \n", scalar @{[split//,$1]} -1; }


Comment on Re: how to split full digit number?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-08-02 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (53 votes), past polls