in reply to Re^4: way of declare an integer variable instead use /^\d+$/
in thread way of declare an integer variable instead use /^\d+$/

> then store the validated integer into a "normal" variable.

I never said this, but I thought about it in order to limit the speed penalty.

But using two variables is somehow sabotaging the intent of nicer code....

I'm not sure about if the performance penalty for tied variables also hits if FETCH was not altered, but I think it's very likely so.

An XS implementation might levitate this, not sure which kinds of "magic" are possible here.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^5: way of declare an integer variable instead use /^\d+$/