Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

More operator tokens

by John M. Dlugosz (Monsignor)
on Jul 09, 2002 at 20:15 UTC ( #180588=note: print w/replies, xml ) Need Help??


in reply to (jeffa) Re: A better mod (%) operator?
in thread A better mod (%) operator?

Too bad Perl doesn't use a few other math symbols from Unicode as operator tokens (with no built-in meaning). I think that would be very easy to add. Often what's needed is a "different flavor" of multiplication etc., so using the circled cross etc. would be good choices, and they can have the same precidence as their ordinary cousins.

Replies are listed 'Best First'.
Re: More operator tokens
by Fastolfe (Vicar) on Jul 09, 2002 at 21:25 UTC
    Which key would I use to type that operator in vi? :)
      Try control-alt-hyperspace-meta buckyball.

      FWIW, it looks like "Space Cadet" keyboards are gaining popularity. I just got a "MS Office" keyboard to replace a dead one, as it had the best quality and key-feel of any in the store.

      In the superior vim :^), that would be Ctrl-V <numerical character code> (can be any of decimal, octal or hex) - see :help i_CTRL-V_digit

      :-)

      Makeshifts last the longest.

      Maybe you could use an ascii sequence such as (*).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180588]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2020-11-26 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?