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

Re^2: Numification of strings

by Marshall (Abbot)
on Aug 02, 2010 at 13:47 UTC ( #852472=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #include <stdio.h>
    #include <stdlib.h>
    ...
               there are either no digits or non-digits
       case c) a null string results in 0
    */
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $a = "23B";
    $a +=0;
    print $a;
    
  3. or download this
    my $x = "00012";
    print "$x\n";
    ...
    ##prints
    #00012
    #12
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852472]
help
Chatterbox?
[karlgoethebier]: No sack of rice fell over in China?
[karlgoethebier]: PM is going down...
[LanX]: ♪..♫ Don't cry for me Mandarina .......♩..♬
[karlgoethebier]: ...pasta bolded too soft in Eately?
[karlgoethebier]: BOILED!
[karlgoethebier]: OK, at least a cool song: https://www. youtube.com/watch? v=jU4caMqKssg

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-10-21 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (270 votes). Check out past polls.

    Notices?