[Israel.pm] abs of string
offer.kaye at gmail.com
Mon Mar 21 00:09:56 PST 2005
On Sun, 20 Mar 2005 22:37:43 +0000, Mikhael Goikhman wrote:
> "5r" is neither a bareword nor a correct number. See
> for the definition of "bareword".
> > $ perl -le'print abs r5'
> > doesn't?
> It is the same reason why my sig does not produce an error. :-)
> The bareword "r5" is taken as a string. Use "use strict" or "use warning"
> to get an error or a warning respectively.
Putting aside for a moment the issue of using strict and warnings
(which is of course the correct thing to do), I still don't understand
why "r5" is a bareword, while "5r" isn't. The ref you gave doesn't
More information about the Perl