Periodic Table | Computer Programming | Arithmetic

Produced in the Provence of Perl 6

True Operators

!e"o#c $able of % &pera'or(
Comparitins Noble Gas
Mu ltip lic oid s
Bi,C 9 Bi,C 9 M numeric less Bi,C 9

Being a comprehensive an) complete enumeration of the Symbolic Elements of the Perl 6 Language. Assemble) an) )rawn with )e)ication an) )iligence by M. Lentczner as a service to the Community an) the Republic in hopes of increasing Knowle)ge an) Un)erstan)ing amongst practitioners in the art of Software. Secon) E)ition, May Twenty-Eighth, Two Thousan) Four

<

string less Bi,C 9

lt

Quasi Operators
Qm magical whitespace modifier Qj Qj Qj Qj

»op«
hyper

Contextegens
Pr,R 4 Pr,R 4

_

ids

no

Or ite

list flatten

reference 4 Pr,R 4

list repetition Bi,L 6

numeric less or eq. Bi,C 9

string less or eq.

mo tiv e

De

*

\

xx

Ad de

<=

le

fau

Bi,L

6

Bi,C

9

Bi,C

9

ltit

numeric greater

>

string greater

gt

Magics Junctors Anonymizers Contextegens Alterations

e

Bi,L

16.5

adverbial Qan Bi,L 16.4 Bi,L Sc 18 Qan Qan

:

none
junctive

junctive

one

junctive

any

junctive

all

cti ve

dit e

llic

Pr,R

Bi,L

7

Bi,C

9

co

c Jun

Ca

An

mi

Lo

numeric negate 2.2 Pr,R 4

-

boolean negate

!

string repetition

x

string concatenate

~

numeric greater or eq

>=

string greater or eq Bi,C 9

ge

Bi,L Sc

12.2

logical err Bi,L 11 Bi,L 11 Bi,L 12.2

//

zip Bi,R 15 Bi,L 16.3

¦

err
logical error Qdr 18 Qdr

anon. hash Qdr

{…}

anon. array Qdr

[…]

(…)
list Qdr

Ma tch ic

nu

ids

method call Pr 1.1 Pr

.

Au to

juctive xor Bi,L 2.2

^

numeric context Pr,R 4

+

bitwise complement Pr,R 4

+^

Sh ifto

Bi,L

1.2

Bi,L

Pr,R

4

Bi,L

6

Bi,C

9

Bi,L

10

Bi,L

13.2

Bi,L

modulus Bi,L 6 Bi,L 7

%

numeric equal Pr,R 8½ Bi,C 9

==

string equal Bi,C 9

eq

bitwise and Bi,L 10

+&

bitwise or Bi,L 11

+|

bitwise xor Bi,L 11

+^

logical xor Bi,L Sc 12.2

^^

==>
pipe right Bi,R 13.2

compile-time binding Bi,R 15 Bi,L

::=

greater list comma 16.2

;

xor
logical xor Bi,L Sc 18 -

::(…)
package context

&(…)
sub context

%(…)
hash context Qal

@(…)
array context Qal

$(…)
scalar context Qal

2

Bi,L

5

Bi,L

8

method call on current Pr 1.1

.

predecrement Pr 2 Bi,L

--

juctive or 2.1 Bi,L 3

|

string context Pr,R 4

~

charwise complement Pr,R 4

~^

smart non-match Bi,L 5 Bi,L

!~

divide 6

/

subtract Bi,L 7

-

bitwise shift right Bi,L 8 Pr

+>>

-x
8½ Bi

numeric not equal 9 Bi

!=

string not equal 9

ne

charwise and Bi,L 10

~&

charwise or Bi,L 11

~|

charwise xor Bi,L 11 Bi,L Sc

~^

logical or 12.1 Bi

||

<==
pipe left 13 Tr,Sc 14

run-time binding Bi,R 15 Bi,L

:=

list comma 16.1 Pr,R 17.1 Bi,L Sc

,

logical or 17.2

or

tr///
translate Qq Qq Qq

substitute Qq Qq

s///

m//
match

method call on current, replace

.=

preincrement Po 2

++

juctive and Bi,R 15

&

exponentiation Bi,R 15

**

boolean context

?

boolean invert Po,L 4

?^

smart match

~~

multiply Bi,R 15 Bi,R

*

add 15

+

bitwise shift left Bi,R 15

+<<

text

numeric compare Bi

<=>

string compare 9

cmp

boolean and Bi,R 15

?&

boolean or Bi,R 15

?|

boolean xor Bi,R 15

?^

logical and Bi,R Sc 15

&&

range Po,L 4

..

??::
logical if/else

assignment

=

=>
pair

not
logical not

and
logical and Qq

«…»
word list

regular expression Qq

/…/

system command Qq

`…`

interpolating string Qq

"…"

non-interp string Qq

'…'

Quotables

Try p

teg

multiply 4 Bi,R 15 Bi,R

add

ge

postincrement Po 2

junctive and Bi,R 15

exponentiation

method call Po,L

bitwise shift left

identity 15

boolean and Bi,R 15

boolean or Bi,R 15

boolean xor Bi,R 15

logical and Bi,R Sc

semi-infinite range 15

Le (An sser ite dit s e, & De Orite fau ltit e)

ns

tic

en

++

&=

**=

(…)

*=

+=
15

+<<=
Bi,R

=:=

?&=

?|=

?^=

&&=

...

qw/…/
word list

rx/…/
regular expression

qx/…/
system command

interpolating string Qb

qq/…/

non-interp string Qb

q/…/

ne

s

postdecrement

--

junctive or Bi,R 15

|=

[…]
array access Po,L 4 Bi,R

divide 15

/=

subtract

-=

bitwise shift right

+>>=

charwise and Bi,R 15

~&=

charwise or Bi,R 15

~|=

charwise xor Bi,R 15

~^=

||=
logical or 15

As sig

Lis

<<end
here-doc Qt Qt Qt Qt

iteration

<…>

Bazaars Termplars Declars

Bi,R

junctive xor

^=

{…}
hash access Bi,R

modulus 15 Bi,R 15

%=

+&=
bitwise and

+|=
bitwise or

+^=
bitwise xor

^^=
logical xor Bi,R Sc 15

undef
undefined

not a number Qdc

NaN

Inf
infinity Qdc

yada yada yada Qdc

...

no ids

rie s

sso

string repetition Bi,R 15

x=

string concatenate

~=

//=
logical err

force hash context

hash

like 'sub'

->

var properties

is

pa

ce

Ex

Ac

list repetition

xx=

Synematic Operators
Binary = Prefix Unary = Postfix Unary = Trinary = Meta-operator = Bi Pr Po Tr Me
Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½ Pr,R 8½

Bi,L Sc

12.1

Precedence (lower = tighter) Symbol Name

Filinis

&&
logical and

readable eff. uid/gid Pr,R 8½

-r

writable eff. uid/gid Pr,R 8½

-w

executable eff. uid/gid Pr,R 8½

-x

owned effective uid Pr,R 8½

-o

exists Pr,R 8½

-e

zero size Pr,R 8½ Pr,R

-z

-s
size 8½ Pr,R

setuid 8½ Pr,R

-u

setgid 8½ Pr,R

-g

sticky 8½ Pr,R

-k

mod time before script 8½ Pr,R

-M

access time before script 8½ Pr,R

-A

change time before script 8½ Pr,R 8½

-C

Left associative = L Right associative = R Chaining = C Short-Circuit = Sc

readable real uid/gid

-R

writable real uid/gid

-W

executable real uid/gid

-X

owned real uid

-O

plain file

-f

directory

-d

symbolic link

-l

named pipe

-p

special file

-S

block special

-b

char special

-c

-t
tty

-T
text

binary

-B

Copyright 2004, Mark Lentczner. http://www.ozonehouse.com/mark/ This work is licensed under the Creative Commons Attribution-NonCommercialShareAlike License. To view a copy of this license, visit http://creativecommons.org/ licenses/by-nc-sa/2.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.

Pr

Pr

Pr

Pr

Pr

Pr

Pr

Pr

Textaveries

ref

exists

delete

defined

undef

temp

let

but

Sign up to vote on this title
UsefulNot useful