Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Reliably parsing an integer (updated)

by haukex (Bishop)
on Jun 29, 2020 at 21:35 UTC ( #11118681=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Config;
    use Math::BigInt;
    ...
            | ( [$range] [0-9]{$len1} )
                (?(?{ Math::BigInt->new($^N)->bgt($max) })(*F))
        ) \z }x };
    
  2. or download this
    use warnings;
    use strict;
    ...
    unlike "999999999999999999999999999999999999", $regex;
    
    done_testing;
    
  3. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
              Rate  first second
    first   4403/s     --   -70%
    second 14902/s   238%     --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-09-19 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (114 votes). Check out past polls.

    Notices?