|
|
| Welcome to the Monastery | |
| PerlMonks |
Re^2: Tales from writing a RPN evaluator in Perl 5, Perl 6 and Haskellby eyepopslikeamosquito (Archbishop) |
| on Jan 04, 2006 at 21:36 UTC ( [id://521085]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You are right. My intent was to use /^-?\d+$/ but somehow I "forgot" to insert the anchors. :-( Curiously, when emulating the regex in hand-rolled Haskell code, I somehow "remembered" to insert the anchors. :-) I've updated the Perl code in the root node by inserting the anchors. The Haskell isStrDigit function already checks for all digits (equivalent to using the anchors) and so does not require update. Thanks ambrus.
In Section
Meditations
|
|
||||||||||||||||||||||||||||