Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^4: $a++ allowed by $a-- is not ! why?

by kabel (Chaplain)
on Sep 01, 2003 at 10:12 UTC ( #288111=note: print w/replies, xml ) Need Help??

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:
kabel@linux:~> perl my $num = "1hiho"; print ++ $num, $/; 2 kabel@linux:~>
What about "-1"?
"-1" is an illegal input. harhar. ;-)

Replies are listed 'Best First'.
Re: Re^4: $a++ allowed by $a-- is not ! why?
by demerphq (Chancellor) on Sep 01, 2003 at 11:02 UTC

    the signature does not allow to mix letters with numbers.

    I think we are at cross purposes here. It does allow them to be mixed, you may have any set of letters followed by any set of numbers and ++ will "work". This means that you still have the problem we have been discussing as there is no mapping from 9 to 'a0' but there is a mapping from 'a0' to 9.


    <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://288111]
[1nickt]: Ah, I see. I did read some gamer mag reviews, and yes, they lamented the fact that laptops with no discrete video card are sold as "gaming" hardware.
[1nickt]: But, they do have red keyboard backlighting! And gargoyles on the front, or words like "Maxxx" here and there. They know their demographic!
[1nickt]: True gamers don;t buy Dells, HPs, or Lenovos, I think ;-)
[ambrus]: The keyboard I bought doesn't have backlighting. I specifically had to select for that, because so many keyboards these days have lights. Why would I want lights in the keyboard? I want lights in the room, such as on the ceiling, not in the keyboard.
choroba has a small USB lamp
[ww]: ++ all (phony labels re "gaming"
[1nickt]: ambrus perhaps you know where the keys are?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2017-03-27 13:50 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.