user-pic

Yuki Kimoto

Subscribe to feed Recent Actions from Yuki Kimoto

  • Ben Bullock commented on \d does not validate numbers

    Yes, I switched to using [0-9] almost everywhere. I think it's simpler.

  • Karl Williamson commented on \d does not validate numbers

    DEVANAGARI DIGIT NINE, for example, is used by millions of people millions, perhaps billions, of times a day as an essential component of their numbers. I don't know if you are being careless with your terminology, or wrongly arrogant about the place in the universe of [0-9].

    Unicode::UCD::num(), since Perl 5.14, can be used to make sure that a string of digits are all from the same script, so are not spoofing attempts, returning the numeric value the string represents, or undef if it is illegal.

  • Ben Bullock commented on \d does not validate numbers

    > That’s what /a is for.

    As a followup to this article, I am thinking about making another blog post showing how \d is used to match numbers in actual CPAN modules. It's used for number validation in more than a thousand modules, for example here is the matches for /\\d\./:

    http://grep.cpan.me/?q=%5C%5Cd%5C.

    and here is the matches for /\\d\+\./:

    http://grep.cpan.me/?q=%5C%5Cd%5C%2B%5C..*%2F%5Bb-z%5D*a

    Noting your comment, I tried s…

  • kid51 commented on I can't install perl-5.26.0-RC1 in CentOS 5.11

    Would you be able to either (a) sign up for the Perl 5 Porters mailing list send email to: perl5-porters-subscribe@perl.org) or (b), using a newsreader, subscribe to the perl.perl5.porters group at nntp.perl.org?

    Members of the Perl 5 Porters are working on your problem, but they need to interact with you. That will be much easier on list than here?

    Thank you very much.
    Jim Keenan

  • David Mertens commented on SPVM is released! Perl maybe become much fast.

    I see: you're tackling the same problem as rperl does, but with a different implementation approach. In fact, you're using the exact same implementation strategy as Perl itself, but focused on a strictly typed Perl-ish language. As a bonus, you're making it very easy to call from Perl (something rperl claims to do as well, without the need of a compiler after the module has been compiled once). Code written in your dialect will run faster than a pure Perl implementation because the bytecode compiler and interpreter do not have to check nearly as many corner cases. Have you toyed around with…

Subscribe to feed Responses to Comments from Yuki Kimoto

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.