in reply to
Re: Re: Re: $a++ allowed by $a-- is not ! why?
in thread $a++ allowed by $a-- is not ! why?
As long as you can mix numbers with letters the problem remains.
no, the signature does not allow to mix letters with numbers. if we allowed this, that means:
++: /\A[a-z0-9]*\z/ -> /\A[a-z0-9]*\z/
, what is the difference between this addition and the addition in a 36-ary number system? (have fun with this link)
the only problem here is that the first character must not be a number, thus the awkward domains:
my $num = "1hiho";
print ++ $num, $/;
What about "-1"?
"-1" is an illegal input. harhar. ;-)