Changeset 5993
- Timestamp:
- 07/09/09 18:29:12 (3 years ago)
- Location:
- trunk/Padre-Plugin-Perl6
- Files:
-
- 2 edited
-
lib/Padre/Plugin/Perl6/perl6_table_index.pod (modified) (1 diff)
-
parse_perl6_table_index.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6/perl6_table_index.pod
r5991 r5993 1 =head1 ! 1 =head1 Perl 6 table index 2 3 This is the POD version of http://www.perlfoundation.org/perl6/index.cgi?perl_table_index 4 5 =head1 AUTHORS 6 7 This POD was generated by Ahmad M. Zawawi <ahmad.zawawi@gmail.com> via the tool: 8 http://svn.perlide.org/padre/trunk/Padre-Plugin-Perl6/parse_perl6_table_index.pl 9 10 For authors of the original wiki place, see: 11 http://www.perlfoundation.org/perl6/index.cgi?action=revision_list;page_name=perl_table_index 12 13 =head1 LICENSE 14 15 Copyright (c) 2006-2009 under the same (always latest) license(s) used by the Perl 6 /src 16 branch of the Pugs trunk. 17 18 =head1 Table index 19 20 =head2 ! 2 21 3 22 - logical negation, forces binary context; 4 5 =head1 !6 7 23 - (twigil) - twigil of private class and object variables 8 24 9 =head 1!!25 =head2 !! 10 26 11 27 - second Part of the ternary (conditional) operator after ?? 12 28 13 =head 1!!!29 =head2 !!! 14 30 15 31 (yadda op) - yadda Operator that calles die 16 32 17 =head 1!<33 =head2 !< 18 34 19 35 - not less, synonym for ">=" 20 36 21 =head 1!<=37 =head2 !<= 22 38 23 39 - not less or equal, weird synonym for ">" 24 40 25 =head 1!=41 =head2 != 26 42 27 43 - compare op, true if numeric unequal, short for "!==" 28 44 29 =head 1!=:=45 =head2 !=:= 30 46 31 47 - compare op, tests negated on binding 32 48 33 =head 1!==49 =head2 !== 34 50 35 51 - compare op, tests inequality in numeric context, negated form 36 52 37 =head 1!===53 =head2 !=== 38 54 39 55 - compare op, tests identity, negated form 40 56 41 =head 1!>57 =head2 !> 42 58 43 59 - synonym for "<=" 44 60 45 =head 1!>=61 =head2 !>= 46 62 47 63 - synonym for "<" 48 64 49 =head1 !~~ 65 =head2 !eq 66 67 - synonym for "ne" 68 69 =head2 !eqv 70 71 - negated form of dynamic equivalence 72 73 =head2 !ge 74 75 - synonym for "lt" 76 77 =head2 !gt 78 79 - synonym for "le" 80 81 =head2 !le 82 83 - synonym for "gt" 84 85 =head2 !lt 86 87 - synonym for "ge" 88 89 =head2 !~~ 50 90 51 91 - negated smartmatch operator 52 92 53 =head1 !eq 54 55 - synonym for "ne" 56 57 =head1 !eqv 58 59 - negated form of dynamic equivalence 60 61 =head1 !ge 62 63 - synonym for "lt" 64 65 =head1 !gt 66 67 - synonym for "le" 68 69 =head1 !le 70 71 - synonym for "gt" 72 73 =head1 !lt 74 75 - synonym for "ge" 76 77 =head1 " " 93 =head2 " " 78 94 79 95 - (quoting op) - double quoting, interpolate with :s, :a, :h, :f, :c, :b (all vars, functions, blocks, control chars), alias to qq//* 80 96 81 =head 1#97 =head2 # 82 98 83 99 - starts a comment that continues to the end of the line or bracket 84 100 85 =head 1$101 =head2 $ 86 102 87 103 - (sigil) - prefix of scalar vars, operator to force scalar context 88 89 =head1 $90 91 104 - (regex Metachar) - end of the string 92 105 93 =head 1$$106 =head2 $$ 94 107 95 108 - (regex Metachar) - end of a line 96 109 97 =head 1%110 =head2 % 98 111 99 112 - (sigil) - prefix of hash variables 100 101 =head1 %102 103 113 - gives remainder of a modulo division, forces numeric context 104 114 105 =head 1&115 =head2 & 106 116 107 117 - (conext op) - sigil of coderefs 108 109 =head1 &110 111 118 - junctive and, requires that all conditions are met 112 119 113 =head 1&&120 =head2 && 114 121 115 122 - logical and, conditonal statements, ends evaluation on the first false expression, returns boolean result 116 123 117 =head 1' '124 =head2 ' ' 118 125 119 126 - (quoting op) - simple quoting, just / and ' needs o be quoted, alias to q// 120 127 121 =head 1( )128 =head2 ( ) 122 129 123 130 - grouping of values (parameters) 124 125 =head1 ( )126 127 131 - (regex Metachar) - encompass a subregex/submatch 128 132 129 =head 1*133 =head2 * 130 134 131 135 (scalar num op) - multiplies numbers and forces numeric context on parameters; 132 133 =head1 *134 135 136 (term) - synonym for Inf (Whatever) in connection with a Range operator (".."); marks the end of an array in a slice operator so that negative indices access array elements relative to one beyond the final element 136 137 =head1 *138 139 137 - marks as prefix slurpy arrays in signatures 140 141 =head1 *142 143 138 - (twigil) - secondary sigil of global variables 144 139 145 =head 1**140 =head2 ** 146 141 147 142 (scalar num op) - raises a number to a power and forces numeric context 148 149 =head1 **150 151 143 (regex Metachar) - multiplies char or group like x (scalar strig op) outside of regex, (ha)**3 equals (hahaha) 152 144 153 =head 1+145 =head2 + 154 146 155 147 - (conext op), (scalar num op) - forces numeric context of values and adds results 156 148 157 =head 1+&149 =head2 +& 158 150 159 151 (scalar num op) - bitwise and, numeric context 160 152 161 =head 1++153 =head2 ++ 162 154 163 155 (prefix & suffix op) - generic autoincrement, calls internal iterator of that object, before (prefix) or after (suffix) the evaluation of the surrounding term 164 156 165 =head 1+<157 =head2 +< 166 158 167 159 (scalar num op) - shift left in numeric kontext 168 160 169 =head 1+>161 =head2 +> 170 162 171 163 (scalar num op) - shift right in numeric kontext 172 164 173 =head 1+^165 =head2 +^ 174 166 175 167 (scalar num op) - bitwise xor in numeric context 176 168 177 =head 1+|169 =head2 +| 178 170 179 171 (scalar num op) - bitwise or in numeric context 180 172 181 =head 1,173 =head2 , 182 174 183 175 - list generating operator 184 176 185 =head 1-177 =head2 - 186 178 187 179 - forces numeric context and subtract 188 180 189 =head 1--181 =head2 -- 190 182 191 183 (prefix & suffix op) - generic autodecrement, calls internal iterator of that object, before (prefix) or after (suffix) the evaluation of the surrounding term 192 184 193 =head 1-->185 =head2 --> 194 186 195 187 - alternative syntax to type a parameter 196 188 197 =head 1.189 =head2 . 198 190 199 191 - secondary sigil for public accessors (getter/setter) 200 201 =head1 .202 203 192 - (regex Metachar) - really any character (unlike Perl 5) 204 193 205 =head 1..194 =head2 .. 206 195 207 196 - range generating operator; range object in scalar context, see smartmatch table 208 197 209 =head 1...198 =head2 ... 210 199 211 200 (yadda op) - yadda Operator that calles fail (exception) 212 201 213 =head 1/202 =head2 / 214 203 215 204 - division, numeric context 216 205 217 =head 1//206 =head2 // 218 207 219 208 - err operator, returns the first defined value 220 209 221 =head 1:210 =head2 : 222 211 223 212 - pair generation operator 224 225 =head1 :226 227 213 - (filetest op) - start of all file text ops, syntax: ":" ~ one (<r w x o R W X O e z s f d l p S b c t u g k T B M A C>) 228 229 =head1 :230 231 214 - (twigil) - for autogenerated named parameters of a block 232 233 =head1 :234 235 215 - converts (decimal) numbers to another base, number of base follows after the ":" 236 237 =head1 :238 239 216 - marks as prefix named parameter in a signature 240 241 =head1 :242 243 217 - (flow control) - endchar of all labels, jou can jump to (see also goto) 244 218 245 =head 1::219 =head2 :: 246 220 247 221 - name space separator (like in Perl 5) 248 222 249 =head 1::=223 =head2 ::= 250 224 251 225 - binding at compile time 252 226 253 =head 1:=227 =head2 := 254 228 255 229 - creates an alias to a variable (binding) 256 230 257 =head 1;231 =head2 ; 258 232 259 233 - seperates commands (statements) or array indices eg @[2;3] instead of @a[2][3] 260 234 261 =head 1<235 =head2 < 262 236 263 237 less than, numeric comparison operator 264 238 265 =head1 <-> 239 =head2 < > 240 241 - (quoting op) - circumfix quoting operator for grouping with autoquoting (alias to Q :q :ww /.../) 242 243 =head2 <-> 266 244 267 245 double pointy syntax to assign a rw parameter to a block 268 246 269 =head 1<<247 =head2 << 270 248 271 249 - (meta op) - applies the operator on the left as hyper operator to the array on the right 272 250 273 =head1 <<== 251 =head2 << >> 252 253 - (quoting op) - circumfix quoting operator for grouping with autoquoting and evaluation (alias to Q :qq :ww /.../) 254 255 =head2 <<== 274 256 275 257 - leftward pointing feed operator that adds values to an existing list (append-mode) 276 258 277 =head1 << >> 278 279 - (quoting op) - circumfix quoting operator for grouping with autoquoting and evaluation (alias to Q :qq :ww /.../) 280 281 =head1 <= 259 =head2 <= 282 260 283 261 - less than or equal, numeric comparison operator 284 262 285 =head 1<==263 =head2 <== 286 264 287 265 - leftward pointing feed operator 288 266 289 =head 1<=>267 =head2 <=> 290 268 291 269 - numeric less-equal-greater comparison for Order class 292 270 293 =head1 < > 294 295 - (quoting op) - circumfix quoting operator for grouping with autoquoting (alias to Q :q :ww /.../) 296 297 =head1 = 271 =head2 <op>= 272 273 - (meta op) - self assignment, left side is one oper and the result is assigned to ($a += 3; equals $a = $a + 3) 274 275 =head2 <var>[] 276 277 - postcircumfix operator, appended on an array var, returns an array slice with values which indexes was inside the brackets 278 279 =head2 = 298 280 299 281 (Op) - assignment, left side is evaluated and assigned to the right 300 282 301 =head1 <op>= 302 303 - (meta op) - self assignment, left side is one oper and the result is assigned to ($a += 3; equals $a = $a + 3) 304 305 =head1 =:= 283 =head2 =:= 306 284 307 285 (Op) - compares binding, if both vars are bound to same memory location 308 286 309 =head 1==287 =head2 == 310 288 311 289 (Op) - equality of value (numeric) 312 290 313 =head 1===291 =head2 === 314 292 315 293 (Op) - equality of value and type 316 294 317 =head 1==>295 =head2 ==> 318 296 319 297 (Op) - rightward pointing feed operator 320 298 321 =head 1==>>299 =head2 ==>> 322 300 323 301 (Op) - rightward pointing feed operator that adds values to an existing list (append-mode) 324 302 325 =head 1=>303 =head2 => 326 304 327 305 (Op) - pair (and hash) constructor, fatarrow 328 306 329 =head 1>307 =head2 > 330 308 331 309 (Op) - greater than, numeric comparison operator; ends grouping with autoquoting (formerly qw()) 332 310 333 =head 1>=311 =head2 >= 334 312 335 313 (Op) - greater than or equal, numeric comparison Op 336 314 337 =head 1>>315 =head2 >> 338 316 339 317 - (meta op) - binds operator (right) as hyper operator to an array (left) 340 318 341 =head 1?319 =head2 ? 342 320 343 321 - (conext op) - forces binary context in an expression 344 345 =head1 ?346 347 322 - marks as postfix optional parameters in signatures 348 349 =head1 ?350 351 323 - quantifier for 0 or 1 occurrence in Regexes 352 353 =head1 ?354 355 324 - (twigil) - secondary sigil for constant compiler hint variables 356 325 357 =head 1?&326 =head2 ?& 358 327 359 328 - logical op, and combinator, forces binary context 360 329 361 =head 1?? !!330 =head2 ?? !! 362 331 363 332 - ternary or conditional operator 364 333 365 =head 1???334 =head2 ??? 366 335 367 336 (yadda op) - yadda operator that calles warn 368 337 369 =head 1?^338 =head2 ?^ 370 339 371 340 - logical xor, forces operands into boolean context 372 341 373 =head 1?|342 =head2 ?| 374 343 375 344 - logical or, forces operands into boolean context 376 345 377 =head 1@346 =head2 @ 378 347 379 348 - (sigil) - sigil of an array 380 349 381 =head 1@@350 =head2 @@ 382 351 383 352 - (conext op) - sigil for multislice context, meaning an array that may contain array references 384 353 385 =head1 <var>[] 386 387 - postcircumfix operator, appended on an array var, returns an array slice with values which indexes was inside the brackets 388 389 =head1 [ ] 354 =head2 A 355 356 - (filetest op) - Script start time minus file access time, in days 357 358 =head2 B 359 360 - (filetest op) - file is a binary data file (opposite of :T) 361 362 =head2 BEGIN 363 364 (closure trait) - special Block, is executed in compile time 365 366 =head2 C 367 368 - (filetest op) - Script start time minus inode change time (Unix, may differ for other platforms) 369 370 =head2 Code 371 372 - data typ for code references of any kind 373 374 =head2 Failure 375 376 - data type for an error thrown by an unhandled exception 377 378 =head2 Inf 379 380 - infinity, to generate infinite lazy lists 381 382 =head2 M 383 384 - (filetest op) - Script start time minus file modification time, in days 385 386 =head2 O 387 388 - (filetest op) - tests if file is owned by real uid 389 390 =head2 P5 391 392 - (regex modifier) - activate old Perl 5 regex rules, alias to :Perl5 393 394 =head2 Pair 395 396 - data type 397 398 =head2 Perl5 399 400 - (regex modifier) - activate old Perl 5 regex rules, alias to :P5* pick (array method) - select a number of random vaues 401 402 =head2 Q 403 404 - (generalized quoting op) - understands a list of adverbs 405 406 =head2 R 407 408 <op> - (meta op) - reverse operands 409 - (filetest op) - check if file is readable by real uid/gid 410 411 =head2 S 412 413 - (filetest op) - file is a socket 414 415 =head2 T 416 417 - (filetest op) - file is an ASCII text file (heuristic guess), (opposite of :B) 418 419 =head2 W 420 421 - (filetest op) - check if file is writeable by real uid/gid 422 423 =head2 Whatever 424 425 - an undefined type used as wildcard (like undef) (S12) 426 427 =head2 X 428 429 (list op) - Cross product of two arrays, eg 1,2 X 3,4 == 1,3,1,4,2,3,2,4 ; alias of comb method 430 <op> - (meta op) - Cross product with hyper operator, eg <a b> X~ <y z> == <ay az by bz> 431 - (filetest op) - check if file is executable by real uid/gid 432 433 =head2 Z 434 435 (list op) - alias to zip (list op) 436 437 =head2 [ ] 390 438 391 439 - circumfix operator that creates a reference to an array that holds all values that encompas these brackets 392 393 =head1 [ ]394 395 440 - (meta op) - circumfix reduction metaop, close to functional "reduce", applies the operator between all elements of an array 396 441 397 =head 1[\ ]442 =head2 [\ ] 398 443 399 444 - (meta op) - circumfix reduction metaop, applies above reduction to a series of lists made of array slices ranging in length from 1 to the complete length of the original list 400 445 401 =head 1\446 =head2 \ 402 447 403 448 - capture operator, creates a reference to the following structure 404 405 =head1 \406 407 449 - escape char, all escape sequences inside quotes and regexes start with it 408 450 409 =head 1^451 =head2 ^ 410 452 411 453 - junctive xor, requires that one value in a list is true 412 413 =head1 ^414 415 454 - in ranges excludes a limit value, in scalar context see smartmatch, in array context see array creating operators; 416 417 =head1 ^418 419 455 - (twigil) - for autogenerated positional parameters of a block, position results from alphabetical order of all $^-Variables 420 421 =head1 ^422 423 456 (regex Metachar) - start of the string 424 457 425 =head 1^^458 =head2 ^^ 426 459 427 460 - logical xor, combines expressions, returns true when only one expression is true, otherwise false 428 429 =head1 ^^430 431 461 (regex Metachar) - start of a line 432 462 433 =head1 { } 463 =head2 a 464 465 - (quoting adverb) - demands evaluation of array variables, short form of ":array", included in "", qq and <<>> 466 - (regex modifier) - no distinction between same chars with or without accent (funny symbols above), short for ":ignoreaccent" 467 468 =head2 aa 469 470 - (regex modifier) - only for substitutions, replacing with chars that have the same accent pattern as the replaced, short for ":sameaccent" 471 472 =head2 abs 473 474 (scalar num op) - returns numeric absolute value 475 476 =head2 after 477 478 - comparison operator used by the Order class, true if left should follow right 479 480 =head2 all 481 482 - junctive AND operator 483 484 =head2 and 485 486 - logical AND operator 487 488 =head2 andthen 489 490 - logical AND short circuit operator, transferring $_ from first to second block/command, if first do succeed 491 492 =head2 any 493 494 - junctive OR operator 495 496 =head2 array 497 498 - (quoting adverb) - demands evaluation of array variables, long form of ":a", included in "", qq and <<>> 499 500 =head2 as 501 502 - scalar method, converts like sprintf 503 504 =head2 assuming 505 506 - method of all subroutine reference objects that enables Currying 507 508 =head2 async 509 510 (block modifier) - allows the interpreter to parallelize the following 511 512 =head2 b 513 514 - (filetest op) - file is a block special file (e.g. Harddisks, CDROMs and RAM areas) 515 - (quoting adverb) - forces evaluation of escape sequences, short form of ":backslash", included in "", qq and <<>> 516 517 =head2 backslash 518 519 - (quoting adverb) - forces evaluation of escape sequences, long form of ":b", included in "", qq and <<>> 520 521 =head2 before 522 523 - comparison operator used by the Order class, true when left should precede right 524 525 =head2 break 526 527 - leave this when clause now 528 529 =head2 but 530 531 - alters properties of a variable at run time 532 533 =head2 by 534 535 - sets interval for the range (..) operator 536 537 =head2 bytes 538 539 (scalar sring method) - returns number of bytes used (a sort of length) 540 - (regex modifier) - searching on byte level, (see also chars, codes, graphs) 541 542 =head2 c 543 544 - (filetest op) - file is a character special file (e.g. terminals modems) 545 - (quoting adverb) - forces evaluation of closures (blocks aka { ... }) inside quotes, long form of ":closure", included in "", qq and <<>> 546 (<n>) - (regex modifier) - searching from nth (n is an int) position (counting from 0) and then going to the right, short for ":continue" 547 548 =head2 cached 549 550 (sub trait) - marks memoized routines, or at least memoizable 551 552 =head2 call 553 554 - execute a subroutine 555 556 =head2 caller 557 558 - object describing the code from which as routine was invoked 559 560 =head2 callwith 561 562 - submethode by which one can call a sub with a different signature 563 564 =head2 capitalize 565 566 - alias to ucirst(lc($_)), makes first char of every word upper case, rest lowercase 567 568 =head2 cat 569 570 - concatenes strings, synonym for '~' and array method 571 572 =head2 category 573 574 (grammatical category) - namespace of grammatical categories, in case you want to create a new one with a macro 575 576 =head2 chars 577 578 (scalar string method) - returns number of characters 579 - (regex modifier) - searching on character level (default), (see also bytes, codes, graphs) 580 581 =head2 chdir 582 583 - changes the current working directory ($*CWD) 584 585 =head2 chmod 586 587 - changes access rights of files 588 589 =head2 chomp 590 591 (scalar method) - returns a string with the last newline (if there is one) removed 592 593 =head2 chop 594 595 (scalar method) - returns a string with the last character removed 596 597 =head2 chown 598 599 - changes owner of files 600 601 =head2 circumfix 602 603 (grammatical category) - operator namespace of ops, that stay after one statement or variable, but do surround a second (like braces in $a[2]) 604 605 =head2 class 606 607 (block modifier) - declares a collection of methods that define an object 608 609 =head2 classify 610 611 (array op) - special form of map, to sort several arrays 612 613 =head2 close 614 615 - methode on Filehandle class, ending the connection with a file 616 617 =head2 closure 618 619 - (quoting adverb) - forces evaluation of closures (blocks aka { ... }) inside quotes, long form of ":c", included in "", qq and <<>> 620 621 =head2 cmp 622 623 (scalar comp op) - compares values textually, gives results -1(lower than), 0 (equal), 1 (greater than), using the Order class 624 625 =head2 code 626 627 - (quoting adverb) - quasi quoting, the commented will be compiles and the AST will be returned as result, see also: quasi 628 629 =head2 codes 630 631 - (regex modifier) - searching on codepoint level (between codepoints), (see also bytes, chars, graphs) 632 633 =head2 comb 634 635 (array method) - takes another array as parameter and produces cross product of two arrays (like X operator), eg 1,2 X 3,4 == 1,3,1,4,2,3,2,4 636 637 =head2 constant 638 639 (var trait) - makes so declared var (is constant) a real constant 640 641 =head2 contend 642 643 (block modifier) - marks a block as atomic, concurrent proceses have to wait 644 645 =head2 continue 646 647 (flow control) - makes execution in a 'given' also try the following 'when' clauses 648 (<n>) - (regex modifier) - searching from nth (n is an int) position (counting from 0) and then going to the right, short for ":c" 649 650 =head2 d 651 652 - (filetest op) - check if file is a directory 653 654 =head2 default 655 656 - the clause executed in a given construct if no when clause matched 657 658 =head2 defer 659 660 (block modifier) - 661 662 =head2 defined 663 664 - scalar method tests whether a value has been assigned to a variable 665 666 =head2 delete 667 668 - removes a key and value from a hash 669 670 =head2 dim 671 672 - array dimensioning 673 674 =head2 div 675 676 - division, creates fraction objects in Integer context 677 678 =head2 do 679 680 - executes a block (do once loop) 681 682 =head2 does 683 684 - checks if an objekt inherits this role 685 686 =head2 double 687 688 - (quoting adverb) - double quoting, "q" with interpolation of variables, alias to "...", qq /.../ and Q :s, :a, :h, :f, :c, :b /.../, long for ":qq" 689 690 =head2 e 691 692 - (filetest op) - tests if file exists 693 694 =head2 elems 695 696 (array method) - returns number of elements 697 698 =head2 else 699 700 - introduces the alternative block after an 'if' or 'elsif' 701 702 =head2 elsif 703 704 - alternative if clause 705 706 =head2 eq 707 708 - equal, string comparison 709 710 =head2 equiv 711 712 (sub trait) - defines the relative precedence of an operator as equivalent of an other (given as Parameter) 713 714 =head2 eqv 715 716 - compares the dynamic state of objects and values, in contrast with static === 717 718 =head2 err 719 720 (logical operator) - returns the first defined value from the left 721 722 =head2 ex 723 724 - (regex modifier) - searching at all positions as long as it findes something (with backtracking), short for ":exhaustive" 725 726 =head2 exec 727 728 - (quoting adverb) - quoted string will be executed and replaced with its result, alias to Q :x and qx // 729 730 =head2 exhaustive 731 732 - (regex modifier) - searching at all positions as long as it findes something (with backtracking), long for ":ex" 733 734 =head2 exists 735 736 - checks for existence of a variable or hash member, scalar method 737 738 =head2 f 739 740 - (filetest op) - file is a plain file (no socket or dir, ...etc.) 741 - (quoting adverb) - demands evaluation of functions (subs and methods), that start with "&" and replacing them with the result, long form of ":function", included in "", qq and <<>> 742 743 =head2 false 744 745 - boolean value aka Bool::False 746 747 =head2 ff 748 749 - flip flop operator in the style of awk, formerly .. in scalar context 750 751 =head2 fff 752 753 - flip flop operator in the style of sed, formerly ... in scalar context 754 755 =head2 flip 756 757 (scalar string op) - revers strings on character level 758 759 =head2 fmt 760 761 - method on a scalar, takes a format specifier returns a string, simplified sprintf 762 763 =head2 for 764 765 (block modifier) - iterates over a list 766 767 =head2 function 768 769 - (quoting adverb) - demands evaluation of functions (subs and methods), that start with "&" and replacing them with the result, long form of ":f", included in "", qq and <<>> 770 771 =head2 g 772 773 - (filetest op) - report if file has setgid bit set 774 - (regex modifier) - searching for any finding (not just the first), short for :global 775 776 =head2 gather 777 778 (block modifier) - performs the following block once, returns a list of all values passed by 'take' 779 780 =head2 ge 781 782 - greater than on equal, string comparison 783 784 =head2 get 785 786 (handle method) - returns a line (scalar context) or all lines (array context) from that input stream 787 788 =head2 given 789 790 - case construct puts a value into the context variable for when clauses 791 792 =head2 global 793 794 - (regex modifier) - searching for any finding (not just the first), long for :g 795 796 =head2 goto 797 798 (flow control) - transfer execution to a defined label 799 800 =head2 grammar 801 802 - special kind of class to hold regex token and rule definitions 803 804 =head2 graphs 805 806 - (regex modifier) - searching on the level of language-independent graphemes, (see also bytes, chars, codes) 807 808 =head2 group 809 810 - 811 812 =head2 gt 813 814 - greater than or equal, string comparison 815 816 =head2 h 817 818 - (quoting adverb) - demands evaluation of hash variables, long form of ":hash", included in "", qq and <<>> 819 820 =head2 handles 821 822 - delegates execution of a function to another method 823 824 =head2 has 825 826 - creates an attribute for an object 827 828 =head2 hash 829 830 - sets hash-list context 831 - (quoting adverb) - demands evaluation of hash variables, long form of ":h", included in "", qq and <<>> 832 833 =head2 heredoc 834 835 - (quoting adverb) - defines end marker for the following heredoc, :heredoc is equal to :to 836 837 =head2 i 838 839 - (regex modifier) - uppercase and lowercase variants of a letter are taken as the same letter, short for ":ignorecase" (same as in Perl 5) 840 841 =head2 if 842 843 (block modifier) - flow control conditional statement or block modifier, executes code only when a condition expression evaluates to true 844 845 =head2 ignoreaccent 846 847 - (regex modifier) - no distinction between same chars with or without accent (funny symbols above), short for ":a" 848 849 =head2 ignorecase 850 851 - (regex modifier) - uppercase and lowercase variants of a letter are taken as the same letter, long for ":i" (same as in Perl 5) 852 853 =head2 ii 854 855 - (regex modifier) - only for substitutions, replacing with chars that have the same case pattern as the replaced, short for ":samecase" 856 857 =head2 index 858 859 - finds the first occurrence of a substring from a position in a string 860 861 =head2 infix 862 863 (grammatical category) - operator namespace of ops, that are surrounded by whitespace (\w) between 2 vars or statements ($a + $b) 864 865 =head2 inline 866 867 (sub trait) - 868 869 =head2 int 870 871 - extract a whole number value, discarding fractional part 872 873 =head2 invert 874 875 (hash method) - inverts the key => value relation of pairs and hashes 876 877 =head2 is 878 879 - bind a traits to a variable 880 881 =head2 join 882 883 (array method & op) - concatenates list elements into a string, optionally inserting another string between the elements 884 885 =head2 k 886 887 - (filetest op) - report if file has sticky bit set 888 889 =head2 keepall 890 891 - (regex modifier) - forces subrules to memorize everything (even comments) 892 893 =head2 key 894 895 (pair method) - gives the key part of a pair 896 897 =head2 keys 898 899 (hash method) - returns list of hash keys 900 901 =head2 kv 902 903 (hash method) - returns list of key-value pairs 904 905 =head2 l 906 907 - (filetest op) - file is a symbolic link 908 909 =head2 last 910 911 (flow control) - end the current looping block 912 (array method) - number of final element 913 914 =head2 lc 915 916 (scalar string op & method) - make string lowercase 917 918 =head2 lcfirst 919 920 (scalar string op & method) - make first char of a string lowercase 921 922 =head2 le 923 924 (comparison op) - lower than or equal, string comparison 925 926 =head2 leave 927 928 (flow control) - exit the current block 929 930 =head2 leg 931 932 (comparison op) - lower/equal/greater comparator for text 933 934 =head2 let 935 936 - changes value of a variable temporary, it will be set back if the current block exits unsuccessfully 937 938 =head2 lines 939 940 (handle method) - returns an iterator over all lines of that input stream, for lazy retrieval 941 942 =head2 loop 943 944 (block modifier) - general flow control command for repetition 945 946 =head2 looser 947 948 (sub trait) - defines relative precedence of an operator as lesser than another (given as Parameter) 949 950 =head2 lt 951 952 (string comparison op) - lower than, string comparison 953 954 =head2 m 955 956 - (regex quoting op) - perform a regex based search in place ( stands for match ), similar to rx (quote regex op) 957 958 =head2 macro 959 960 - define a routine to alter source code at compile time 961 962 =head2 map 963 964 - take a list, perform a block on each member, return a list of the results Arraymethode 965 966 =head2 match 967 968 - compare a string to a regex/token/rule, alias to smartmatch operator (~~) 969 970 =head2 max 971 972 (list op) - returns the numerically largest value from a given list 973 974 =head2 maybe 975 976 (block modifier) - 977 978 =head2 method 979 980 - defines a method in a class 981 982 =head2 min 983 984 - returns the numerically smallest value from a given list 985 986 =head2 minmax 987 988 - returns the highest and lowest values from a list, as a 2 item list 989 990 =head2 mm 991 992 - (regex quoting op) - perform a regex based search in place, spaces are just subrule separators, alias to m:sigspace /.../ 993 994 =head2 mod 995 996 (scalar op) - generic modulo operator 997 998 =head2 module 999 1000 (block modifier) - introduces a module name, a package that performs special actions on loading 1001 1002 =head2 multi 1003 1004 (routine modifier) - sub and method overloading modifier to allow multimethod dispatch 1005 1006 =head2 my 1007 1008 (var scope) - makes a variable or routine lexical, therefore exists and is valid only in the current scope (usually a block) 1009 1010 =head2 new 1011 1012 - creates a new object of a class, also name of the automatically called constructor method 1013 1014 =head2 next 1015 1016 (flow control) - looping command to go to the start of the following iteration 1017 1018 =head2 none 1019 1020 - return true when a value is not part of a set, junctive NOT operator 1021 1022 =head2 not 1023 1024 - logical NOT operator, negates truth value, alternative to ! with lower precedence 1025 1026 =head2 o 1027 1028 - (filetest op) - tests if file is owned by effective uid 1029 1030 =head2 of 1031 1032 (sub trait) - defines return type, eg subset Month of Int where { 1 <= $^a <= 12 } 1033 1034 =head2 one 1035 1036 - junctive XOR operator 1037 1038 =head2 only 1039 1040 - subroutine modifier, permits only a routine of the same name 1041 1042 =head2 or 1043 1044 - logical or operator 1045 1046 =head2 orelse 1047 1048 - logical OR short circuit operator, transferring an Error code from first to second block/command, if first do not succeed 1049 1050 =head2 our 1051 1052 (var scope) - makes a variable or subroutine name visible in all the current package 1053 1054 =head2 ov 1055 1056 - (regex modifier) - searching at all positions just one time (with backtracking), short for ":overlap" 1057 1058 =head2 overlap 1059 1060 - (regex modifier) - searching at all positions just one time (with backtracking), long for ":ov" 1061 1062 =head2 p 1063 1064 (filetest op) - file is a named pipe (FIFO), or filehandle is a pipe 1065 (<n>) - (regex modifier) - searching only on the nth (n is an int) position (counting from 0), short for ":pos" 1066 1067 =head2 p5=> 1068 1069 (array op) - hash constructor, that works like in Perl 5, generates just a list that can converted in hash context to an hash 1070 1071 =head2 package 1072 1073 (block modifier) - defines this Block or File as namespace (almost like in Perl 5), some uses are now better to do with "module" and "class" 1074 1075 =head2 pair 1076 1077 (context op) - force pair context 1078 1079 =head2 pairs 1080 1081 (hash method) - returns all contents as an array or pairs (key,value) 1082 1083 =head2 panic 1084 1085 - (regex modifier) - overwriting a possible set :ratchet for all subrules (activates backtracking) 1086 1087 =head2 parsed 1088 1089 (sub trait) - this macro will be parsed once, it is hygienic, but own and later defined rules can't be applied, opposite of "reparsed" 1090 1091 =head2 perl 1092 1093 - evaluates the following string or content of the var on which is called this method, functions with "say" like a better Data::Dumper 1094 1095 =head2 pop 1096 1097 (array op & method) - removes and returns the last element in an array 1098 1099 =head2 pos 1100 1101 (<n>) - (regex modifier) - searching only on the nth (n is an int) position (counting from 0), long for ":p" 1102 1103 =head2 postcircumfix 1104 1105 (grammatical category) - operator namespace of ops, that stay after one statement or variable, but do surround a second (like braces in $a[2]) 1106 1107 =head2 postfix 1108 1109 (grammatical category) - operator namespace of ops, that stay after a statement or variable (like $a++) 1110 1111 =head2 prefix 1112 1113 (grammatical category) - operator namespace of ops, that stay before a statement or variable (like ++$a) 1114 1115 =head2 print 1116 1117 - sends characters to an output stream without adding a newline, see 'say' 1118 1119 =head2 printf 1120 1121 - formats text and sends it to standard output 1122 1123 =head2 prompt 1124 1125 - reading a line from $*IN formerly STDIN 1126 1127 =head2 proto 1128 1129 - predeclaration of subroutine or method 1130 1131 =head2 push 1132 1133 (array op & method) - adds a list of values to the end of an array 1134 1135 =head2 q 1136 1137 - (quoting op) - simple quoting (slashes and '), alias to '...' and Q :q /.../ and Q :single /.../ 1138 - (quoting adverb) - simple quoting (slashes and '), alias to '...' and q /.../, short for ":single" 1139 1140 =head2 qq 1141 1142 - (quoting op) - double quoting, "q" with interpolation of variables, alias to "..." and Q :s, :a, :h, :f, :c, :b /.../ and Q :qq // and Q :double // 1143 - (quoting adverb) - double quoting, "q" with interpolation of variables, alias to "...", qq /.../ and Q :s, :a, :h, :f, :c, :b /.../, short for ":double" 1144 1145 =head2 quasi 1146 1147 (block modifier) - quasi quoting, the commented will be compiles and the AST will be returned as result, see also: code 1148 1149 =head2 quote 1150 1151 (grammatical category) - operator namespace, used to define new quoting ops with a macro 1152 1153 =head2 quote_mod 1154 1155 (grammatical category) - operator namespace, used to define new quoting adverbs 1156 1157 =head2 quotewords 1158 1159 - (quoting adverb) - split quoted string on words (on whitespaces) with quote protection (like in shell - '' and "" sourround words), long form of ":quotewords", used in < ... > and << ... >> 1160 1161 =head2 qw 1162 1163 - (quoting op) - splits result on words (as in P5), alias to Q :q :w // 1164 1165 =head2 qx 1166 1167 - (quoting op) - execute as command and return results (as in P5), alias to Q :x // 1168 1169 =head2 r 1170 1171 - (filetest op) - check if file is readable by effective uid/gid 1172 1173 =head2 rand 1174 1175 - generate a floating point random number between 0.0 and 1.0 1176 1177 =head2 ratchet 1178 1179 - (regex modifier) - deactivates backtracking, search starts at pos, where last match ended 1180 1181 =head2 readline 1182 1183 - now called 'get', reads from an input stream until the next newline 1184 1185 =head2 redo 1186 1187 - re-starts processing of the current loop 1188 1189 =head2 regex 1190 1191 - (routine type) - a pattern definition (without :ratchet and :sigspace), can be put in a grammar, similar to qr/.../ in Perl 5 1192 - (quoting adverb) - parse as quoted string as regex 1193 1194 =head2 reparsed 1195 1196 (sub trait) - after parsing this macro, it will be reparsed, so that not hygienic, but its own and later defined rules can be applied, opposite of "parsed" 1197 1198 =head2 return 1199 1200 (flow control) - ends a subroutine and defines the value given to the caller 1201 1202 =head2 returns 1203 1204 - sub trait describing the type of value produced by a function 1205 1206 =head2 reverse 1207 1208 (array method) - returns all the members in the opposite order. Use "flip" to turn a string back to front and "invert" for hashes 1209 1210 =head2 rindex 1211 1212 - finds the last occurrence before a given position, of a substring within a string 1213 1214 =head2 role 1215 1216 - container for methods that can extend a class using does 1217 1218 =head2 rule 1219 1220 - alais for "regex :ratchet :sigspace" in a grammar, see regex, token 1221 1222 =head2 rw 1223 1224 - (Routine Trait) means read/write, 1225 - (regex modifier) - gives the regex the right to change the string (operand) 1226 1227 =head2 rx 1228 1229 - (regex quoting op) - creates anonymous regex, that can me then assigned into a var, alias to Q :regex // and regex (block modificator) 1230 1231 =head2 s 1232 1233 - (filetest op) - returns file size in bytes 1234 - (quoting adverb) - demands evaluation of scalar variables, long form of ":scalar", included in "", qq and <<>> 1235 - (regex quoting op) - perform a substitution based on rx-matches in place, creates anonymous regex, alias to Q :subst // and subst (block modificator) 1236 - (regex modifier) - whitespace separates now subregex and don't stand for spaces to look for, short for ":sigspace", mm// is alias to m:sigspace// 1237 1238 =head2 sameaccent 1239 1240 - (regex modifier) - only for substitutions, replacing with chars that have the same accent pattern as the replaced, long for ":aa" 1241 1242 =head2 samecase 1243 1244 - (regex modifier) - only for substitutions, replacing with chars that have the same case pattern as the replaced, long for ":ii" 1245 1246 =head2 samespace 1247 1248 - (regex modifier) - smart space mapping for substitutions, long for ":ss", ss// is alias to s:samespace///, (ss/teh hsa/the has/;) 1249 1250 =head2 say 1251 1252 - a function like print that also appends a newline (\n) 1253 1254 =head2 scalar 1255 1256 - (quoting adverb) - demands evaluation of scalar variables, long form of ":s", included in "", qq and <<>> 1257 1258 =head2 seed 1259 1260 - initialize a random number generator, optionally with a value 1261 1262 =head2 sigil 1263 1264 (grammatical category) - word to name the namespace for sigils, used to redifine them or define your own with a macro 1265 1266 =head2 signature 1267 1268 (sub trait) - 1269 1270 =head2 sigspace 1271 1272 - (regex modifier) - whitespace separates now subregex and don't stand for spaces to look for, long for for ":s", mm// is alias to m:sigspace// 1273 1274 =head2 single 1275 1276 - (quoting adverb) - simple quoting (slashes and '), alias to '...' and q /.../, long for ":q" 1277 1278 =head2 slurp 1279 1280 - reads a entire file into a string 1281 1282 =head2 special_variable 1283 1284 (grammatical category) - namespace to define and redefine special variables with a macro 1285 1286 =head2 split 1287 1288 - makes an array of substrings from a string and a separator 1289 1290 =head2 sprintf 1291 1292 - like printf but returns the string instead of outputting it 1293 1294 =head2 ss 1295 1296 - (regex quoting op) - performs rx based substitution, spaces are just subrule separators, alias to s:samespace/.../.../ 1297 - (regex modifier) - only for for substitution, whitespace separates subregexes like :sigspace, but also in the second part, short for ":samespace", ss// is alias to s:samespace///, (ss/teh hsa/the has/;) 1298 1299 =head2 state 1300 1301 - declares variables known only in the enclosing block, that retain their values between invocations 1302 1303 =head2 sub 1304 1305 (block modifier) - defines a subroutine 1306 1307 =head2 submethod 1308 1309 (block modifier) - defines methods, not inherited by subclasses 1310 1311 =head2 subset 1312 1313 - define a subtype, eg subset Month of Int where { 1 <= $^a <= 12 } 1314 1315 =head2 subst 1316 1317 (quote op) - scalar method to perform substitution, alias to s/// 1318 - (quoting adverb) - parse as substitution 1319 1320 =head2 substr 1321 1322 - the scalar substring function like in Perl 5 1323 1324 =head2 t 1325 1326 - (filetest op) - filehandle is opened to a tty (terminal) 1327 1328 =head2 take 1329 1330 - produces a return value in a gather block 1331 1332 =head2 temp 1333 1334 - defines variables as temporary, synonym for the Perl 5 "local" 1335 1336 =head2 term 1337 1338 (grammatical category) - namespace of terms, used to redifine them or make a new with a macro 1339 1340 =head2 tighter 1341 1342 (sub trait) - defines relative precedence of an operator as higher than another (given as Parameter) 1343 1344 =head2 to 1345 1346 - (quoting adverb) - defines end marker for the following heredoc, :to is short for :heredoc 1347 1348 =head2 token 1349 1350 - kind of regex :ratchet (no backtracking), part of a grammar 1351 1352 =head2 tr 1353 1354 - (quoting op) - transliteration (as in Perl 5), translating some character in a string into others, alias to Q :trans /// 1355 1356 =head2 trans 1357 1358 - (quoting adverb) - evals the quoted as transliteration aka tr /// 1359 1360 =head2 true 1361 1362 (term) - converts value into the boolean context, low precedence alternative to "?" 1363 - boolean value aka Bool::True 1364 1365 =head2 trusts 1366 1367 - allows a class the acess to otherwised sealed namespaces 1368 1369 =head2 twigil 1370 1371 (grammatical category) - word to name the namespace for twigils, used to redifine them or define your own with a macro 1372 1373 =head2 u 1374 1375 - (filetest op) - report if file has setuid bit set 1376 1377 =head2 uc 1378 1379 - make all string chars uppercase 1380 1381 =head2 ucfirst 1382 1383 - make first char of a string uppercase 1384 1385 =head2 undef 1386 1387 - undefined, Perl word for 'empty' 1388 1389 =head2 unless 1390 1391 (block modifier) - flow control modifier, opposite of if, runs block if expression is false 1392 1393 =head2 until 1394 1395 (loop block modifier) - opposite of while, runs block repeatedly is long as expression is false 1396 1397 =head2 unwrap 1398 1399 - remove an enclosing subroutine 1400 1401 =head2 use 1402 1403 - load a module, import definitions, check Perl version 1404 1405 =head2 value 1406 1407 (pair method) - gets value (second) value of a pair 1408 1409 =head2 values 1410 1411 (hash method) - returns an array of just the values 1412 1413 =head2 w 1414 1415 - (filetest op) - check if file is writeable by effective uid/gid 1416 - (quoting adverb) - split quoted string on words (on whitespaces), no quote protection, short form of ":words", used in qw// 1417 1418 =head2 want 1419 1420 - produces a signature object that provides information about the context from which the current routine was called 1421 1422 =head2 when 1423 1424 (block modifier) - executes its code block if a 'given' value smartmatches 1425 1426 =head2 where 1427 1428 - defines subtypes of data, eg subset Month of Int where { 1 <= $^a <= 12 } 1429 1430 =head2 while 1431 1432 (block modifier) - flow control modifier runs block repeatedly as long as en expression is true 1433 1434 =head2 words 1435 1436 - (quoting adverb) - split quoted string on words (on whitespaces), no quote protection, long form of ":w", used in qw// 1437 1438 =head2 wrap 1439 1440 - creates enveloping subroutine 1441 1442 =head2 ww 1443 1444 - (quoting adverb) - split quoted string on words (on whitespaces) with quote protection (like in shell - '' and "" sourround words), short form of ":quotewords", used in < ... > and << ... >> 1445 1446 =head2 x 1447 1448 - (filetest op) - check if file is executable by effective uid/gid 1449 (scalar string op) - string replicate operator to single string, eg 'ab' x 3 == 'ababab' 1450 - (quoting adverb) - quoted string will be executed and replaced with its result, alias to Q :exec and qx // 1451 (<n>) - (regex modifier) - searching n times (n is an int) with this pattern 1452 1453 =head2 xor 1454 1455 (scalar bool op) - boolean exclusive or operator, only true if only one operand is true 1456 1457 =head2 xx 1458 1459 (scalar string op) - string replicate operator to array, eg 'ab' xx 3 == <ab ab ab> 1460 1461 =head2 z 1462 1463 - (filetest op) - tests if file is empty (zero size) 1464 1465 =head2 zip 1466 1467 (list op) - zip operator, joines 2 lists eg 1,2,3,4 Z 8,9 == 1,8,2,9 1468 1469 =head2 { } 434 1470 435 1471 - circumfix operator: encloses blocks and creates a coderef, or a hashref when it is identified as a hash or contains a '=>' 436 1472 437 =head 1|1473 =head2 | 438 1474 439 1475 (junctive op) - junctive or, requires that a condition is fulfilled 440 441 =head1 |442 443 1476 - (conext op) - dereferences a capture into capture context 444 1477 445 =head 1||1478 =head2 || 446 1479 447 1480 - logical or, evaluates sequentially, ends evaluation at the first expression that returns true 448 1481 449 =head 1~1482 =head2 ~ 450 1483 451 1484 - (conext op), (scalar string op) - forces string context (stringify) and/or concatenate strings, synonym for cat 452 453 =head1 ~& 1485 < - characterwise left shift, forces string context 1486 1487 =head2 ~& 454 1488 455 1489 - characterwise and, forces string context 456 1490 457 =head1 ~ 458 459 < - characterwise left shift, forces string context 460 461 =head1 ~> 1491 =head2 ~> 462 1492 463 1493 - characterwise right shift, forces string context 464 1494 465 =head 1~^1495 =head2 ~^ 466 1496 467 1497 - characterwise xor, forces string context 468 1498 469 =head 1~|1499 =head2 ~| 470 1500 471 1501 - characterwise or, forces string context 472 1502 473 =head 1~~1503 =head2 ~~ 474 1504 475 1505 - smartmatch operator, compares (almost) all data types 476 1506 477 =head1 A478 479 - (filetest op) - Script start time minus file access time, in days480 481 =head1 a482 483 - (quoting adverb) - demands evaluation of array variables, short form of ":array", included in "", qq and <<>>484 485 =head1 a486 487 - (regex modifier) - no distinction between same chars with or without accent (funny symbols above), short for ":ignoreaccent"488 489 =head1 aa490 491 - (regex modifier) - only for substitutions, replacing with chars that have the same accent pattern as the replaced, short for ":sameaccent"492 493 =head1 abs494 495 (scalar num op) - returns numeric absolute value496 497 =head1 after498 499 - comparison operator used by the Order class, true if left should follow right500 501 =head1 all502 503 - junctive AND operator504 505 =head1 and506 507 - logical AND operator508 509 =head1 andthen510 511 - logical AND short circuit operator, transferring $_ from first to second block/command, if first do succeed512 513 =head1 any514 515 - junctive OR operator516 517 =head1 array518 519 - (quoting adverb) - demands evaluation of array variables, long form of ":a", included in "", qq and <<>>520 521 =head1 as522 523 - scalar method, converts like sprintf524 525 =head1 async526 527 (block modifier) - allows the interpreter to parallelize the following528 529 =head1 assuming530 531 - method of all subroutine reference objects that enables Currying532 533 =head1 B534 535 - (filetest op) - file is a binary data file (opposite of :T)536 537 =head1 b538 539 - (filetest op) - file is a block special file (e.g. Harddisks, CDROMs and RAM areas)540 541 =head1 b542 543 - (quoting adverb) - forces evaluation of escape sequences, short form of ":backslash", included in "", qq and <<>>544 545 =head1 backslash546 547 - (quoting adverb) - forces evaluation of escape sequences, long form of ":b", included in "", qq and <<>>548 549 =head1 before550 551 - comparison operator used by the Order class, true when left should precede right552 553 =head1 BEGIN554 555 (closure trait) - special Block, is executed in compile time556 557 =head1 break558 559 - leave this when clause now560 561 =head1 but562 563 - alters properties of a variable at run time564 565 =head1 by566 567 - sets interval for the range (..) operator568 569 =head1 bytes570 571 (scalar sring method) - returns number of bytes used (a sort of length)572 573 =head1 bytes574 575 - (regex modifier) - searching on byte level, (see also chars, codes, graphs)576 577 =head1 C578 579 - (filetest op) - Script start time minus inode change time (Unix, may differ for other platforms)580 581 =head1 c582 583 - (filetest op) - file is a character special file (e.g. terminals modems)584 585 =head1 c586 587 - (quoting adverb) - forces evaluation of closures (blocks aka { ... }) inside quotes, long form of ":closure", included in "", qq and <<>>588 589 =head1 c590 591 (<n>) - (regex modifier) - searching from nth (n is an int) position (counting from 0) and then going to the right, short for ":continue"592 593 =head1 cached594 595 (sub trait) - marks memoized routines, or at least memoizable596 597 =head1 call598 599 - execute a subroutine600 601 =head1 caller602 603 - object describing the code from which as routine was invoked604 605 =head1 callwith606 607 - submethode by which one can call a sub with a different signature608 609 =head1 capitalize610 611 - alias to ucirst(lc($_)), makes first char of every word upper case, rest lowercase612 613 =head1 cat614 615 - concatenes strings, synonym for '~' and array method616 617 =head1 category618 619 (grammatical category) - namespace of grammatical categories, in case you want to create a new one with a macro620 621 =head1 chars622 623 (scalar string method) - returns number of characters624 625 =head1 chars626 627 - (regex modifier) - searching on character level (default), (see also bytes, codes, graphs)628 629 =head1 chdir630 631 - changes the current working directory ($*CWD)632 633 =head1 chmod634 635 - changes access rights of files636 637 =head1 chomp638 639 (scalar method) - returns a string with the last newline (if there is one) removed640 641 =head1 chop642 643 (scalar method) - returns a string with the last character removed644 645 =head1 chown646 647 - changes owner of files648 649 =head1 circumfix650 651 (grammatical category) - operator namespace of ops, that stay after one statement or variable, but do surround a second (like braces in $a[2])652 653 =head1 class654 655 (block modifier) - declares a collection of methods that define an object656 657 =head1 classify658 659 (array op) - special form of map, to sort several arrays660 661 =head1 close662 663 - methode on Filehandle class, ending the connection with a file664 665 =head1 closure666 667 - (quoting adverb) - forces evaluation of closures (blocks aka { ... }) inside quotes, long form of ":c", included in "", qq and <<>>668 669 =head1 cmp670 671 (scalar comp op) - compares values textually, gives results -1(lower than), 0 (equal), 1 (greater than), using the Order class672 673 =head1 Code674 675 - data typ for code references of any kind676 677 =head1 code678 679 - (quoting adverb) - quasi quoting, the commented will be compiles and the AST will be returned as result, see also: quasi680 681 =head1 codes682 683 - (regex modifier) - searching on codepoint level (between codepoints), (see also bytes, chars, graphs)684 685 =head1 comb686 687 (array method) - takes another array as parameter and produces cross product of two arrays (like X operator), eg 1,2 X 3,4 == 1,3,1,4,2,3,2,4688 689 =head1 constant690 691 (var trait) - makes so declared var (is constant) a real constant692 693 =head1 contend694 695 (block modifier) - marks a block as atomic, concurrent proceses have to wait696 697 =head1 continue698 699 (flow control) - makes execution in a 'given' also try the following 'when' clauses700 701 =head1 continue702 703 (<n>) - (regex modifier) - searching from nth (n is an int) position (counting from 0) and then going to the right, short for ":c"704 705 =head1 d706 707 - (filetest op) - check if file is a directory708 709 =head1 default710 711 - the clause executed in a given construct if no when clause matched712 713 =head1 defer714 715 (block modifier) -716 717 =head1 defined718 719 - scalar method tests whether a value has been assigned to a variable720 721 =head1 delete722 723 - removes a key and value from a hash724 725 =head1 dim726 727 - array dimensioning728 729 =head1 div730 731 - division, creates fraction objects in Integer context732 733 =head1 do734 735 - executes a block (do once loop)736 737 =head1 does738 739 - checks if an objekt inherits this role740 741 =head1 double742 743 - (quoting adverb) - double quoting, "q" with interpolation of variables, alias to "...", qq /.../ and Q :s, :a, :h, :f, :c, :b /.../, long for ":qq"744 745 =head1 e746 747 - (filetest op) - tests if file exists748 749 =head1 elems750 751 (array method) - returns number of elements752 753 =head1 else754 755 - introduces the alternative block after an 'if' or 'elsif'756 757 =head1 elsif758 759 - alternative if clause760 761 =head1 eq762 763 - equal, string comparison764 765 =head1 equiv766 767 (sub trait) - defines the relative precedence of an operator as equivalent of an other (given as Parameter)768 769 =head1 eqv770 771 - compares the dynamic state of objects and values, in contrast with static ===772 773 =head1 err774 775 (logical operator) - returns the first defined value from the left776 777 =head1 ex778 779 - (regex modifier) - searching at all positions as long as it findes something (with backtracking), short for ":exhaustive"780 781 =head1 exec782 783 - (quoting adverb) - quoted string will be executed and replaced with its result, alias to Q :x and qx //784 785 =head1 exhaustive786 787 - (regex modifier) - searching at all positions as long as it findes something (with backtracking), long for ":ex"788 789 =head1 exists790 791 - checks for existence of a variable or hash member, scalar method792 793 =head1 f794 795 - (filetest op) - file is a plain file (no socket or dir, ...etc.)796 797 =head1 f798 799 - (quoting adverb) - demands evaluation of functions (subs and methods), that start with "&" and replacing them with the result, long form of ":function", included in "", qq and <<>>800 801 =head1 Failure802 803 - data type for an error thrown by an unhandled exception804 805 =head1 false806 807 - boolean value aka Bool::False808 809 =head1 ff810 811 - flip flop operator in the style of awk, formerly .. in scalar context812 813 =head1 fff814 815 - flip flop operator in the style of sed, formerly ... in scalar context816 817 =head1 flip818 819 (scalar string op) - revers strings on character level820 821 =head1 fmt822 823 - method on a scalar, takes a format specifier returns a string, simplified sprintf824 825 =head1 for826 827 (block modifier) - iterates over a list828 829 =head1 function830 831 - (quoting adverb) - demands evaluation of functions (subs and methods), that start with "&" and replacing them with the result, long form of ":f", included in "", qq and <<>>832 833 =head1 g834 835 - (filetest op) - report if file has setgid bit set836 837 =head1 g838 839 - (regex modifier) - searching for any finding (not just the first), short for :global840 841 =head1 gather842 843 (block modifier) - performs the following block once, returns a list of all values passed by 'take'844 845 =head1 ge846 847 - greater than on equal, string comparison848 849 =head1 get850 851 (handle method) - returns a line (scalar context) or all lines (array context) from that input stream852 853 =head1 given854 855 - case construct puts a value into the context variable for when clauses856 857 =head1 global858 859 - (regex modifier) - searching for any finding (not just the first), long for :g860 861 =head1 goto862 863 (flow control) - transfer execution to a defined label864 865 =head1 grammar866 867 - special kind of class to hold regex token and rule definitions868 869 =head1 graphs870 871 - (regex modifier) - searching on the level of language-independent graphemes, (see also bytes, chars, codes)872 873 =head1 group874 875 -876 877 =head1 gt878 879 - greater than or equal, string comparison880 881 =head1 h882 883 - (quoting adverb) - demands evaluation of hash variables, long form of ":hash", included in "", qq and <<>>884 885 =head1 has886 887 - creates an attribute for an object888 889 =head1 handles890 891 - delegates execution of a function to another method892 893 =head1 hash894 895 - sets hash-list context896 897 =head1 hash898 899 - (quoting adverb) - demands evaluation of hash variables, long form of ":h", included in "", qq and <<>>900 901 =head1 heredoc902 903 - (quoting adverb) - defines end marker for the following heredoc, :heredoc is equal to :to904 905 =head1 i906 907 - (regex modifier) - uppercase and lowercase variants of a letter are taken as the same letter, short for ":ignorecase" (same as in Perl 5)908 909 =head1 if910 911 (block modifier) - flow control conditional statement or block modifier, executes code only when a condition expression evaluates to true912 913 =head1 ignoreaccent914 915 - (regex modifier) - no distinction between same chars with or without accent (funny symbols above), short for ":a"916 917 =head1 ignorecase918 919 - (regex modifier) - uppercase and lowercase variants of a letter are taken as the same letter, long for ":i" (same as in Perl 5)920 921 =head1 ii922 923 - (regex modifier) - only for substitutions, replacing with chars that have the same case pattern as the replaced, short for ":samecase"924 925 =head1 index926 927 - finds the first occurrence of a substring from a position in a string928 929 =head1 Inf930 931 - infinity, to generate infinite lazy lists932 933 =head1 infix934 935 (grammatical category) - operator namespace of ops, that are surrounded by whitespace (\w) between 2 vars or statements ($a + $b)936 937 =head1 inline938 939 (sub trait) -940 941 =head1 int942 943 - extract a whole number value, discarding fractional part944 945 =head1 invert946 947 (hash method) - inverts the key => value relation of pairs and hashes948 949 =head1 is950 951 - bind a traits to a variable952 953 =head1 join954 955 (array method & op) - concatenates list elements into a string, optionally inserting another string between the elements956 957 =head1 k958 959 - (filetest op) - report if file has sticky bit set960 961 =head1 keepall962 963 - (regex modifier) - forces subrules to memorize everything (even comments)964 965 =head1 key966 967 (pair method) - gives the key part of a pair968 969 =head1 keys970 971 (hash method) - returns list of hash keys972 973 =head1 kv974 975 (hash method) - returns list of key-value pairs976 977 =head1 l978 979 - (filetest op) - file is a symbolic link980 981 =head1 last982 983 (flow control) - end the current looping block984 985 =head1 last986 987 (array method) - number of final element988 989 =head1 lc990 991 (scalar string op & method) - make string lowercase992 993 =head1 lcfirst994 995 (scalar string op & method) - make first char of a string lowercase996 997 =head1 le998 999 (comparison op) - lower than or equal, string comparison1000 1001 =head1 leave1002 1003 (flow control) - exit the current block1004 1005 =head1 leg1006 1007 (comparison op) - lower/equal/greater comparator for text1008 1009 =head1 let1010 1011 - changes value of a variable temporary, it will be set back if the current block exits unsuccessfully1012 1013 =head1 lines1014 1015 (handle method) - returns an iterator over all lines of that input stream, for lazy retrieval1016 1017 =head1 loop1018 1019 (block modifier) - general flow control command for repetition1020 1021 =head1 looser1022 1023 (sub trait) - defines relative precedence of an operator as lesser than another (given as Parameter)1024 1025 =head1 lt1026 1027 (string comparison op) - lower than, string comparison1028 1029 =head1 M1030 1031 - (filetest op) - Script start time minus file modification time, in days1032 1033 =head1 m1034 1035 - (regex quoting op) - perform a regex based search in place ( stands for match ), similar to rx (quote regex op)1036 1037 =head1 macro1038 1039 - define a routine to alter source code at compile time1040 1041 =head1 map1042 1043 - take a list, perform a block on each member, return a list of the results Arraymethode1044 1045 =head1 match1046 1047 - compare a string to a regex/token/rule, alias to smartmatch operator (~~)1048 1049 =head1 max1050 1051 (list op) - returns the numerically largest value from a given list1052 1053 =head1 maybe1054 1055 (block modifier) -1056 1057 =head1 method1058 1059 - defines a method in a class1060 1061 =head1 min1062 1063 - returns the numerically smallest value from a given list1064 1065 =head1 minmax1066 1067 - returns the highest and lowest values from a list, as a 2 item list1068 1069 =head1 mm1070 1071 - (regex quoting op) - perform a regex based search in place, spaces are just subrule separators, alias to m:sigspace /.../1072 1073 =head1 mod1074 1075 (scalar op) - generic modulo operator1076 1077 =head1 module1078 1079 (block modifier) - introduces a module name, a package that performs special actions on loading1080 1081 =head1 multi1082 1083 (routine modifier) - sub and method overloading modifier to allow multimethod dispatch1084 1085 =head1 my1086 1087 (var scope) - makes a variable or routine lexical, therefore exists and is valid only in the current scope (usually a block)1088 1089 =head1 new1090 1091 - creates a new object of a class, also name of the automatically called constructor method1092 1093 =head1 next1094 1095 (flow control) - looping command to go to the start of the following iteration1096 1097 =head1 none1098 1099 - return true when a value is not part of a set, junctive NOT operator1100 1101 =head1 not1102 1103 - logical NOT operator, negates truth value, alternative to ! with lower precedence1104 1105 =head1 O1106 1107 - (filetest op) - tests if file is owned by real uid1108 1109 =head1 o1110 1111 - (filetest op) - tests if file is owned by effective uid1112 1113 =head1 of1114 1115 (sub trait) - defines return type, eg subset Month of Int where { 1 <= $^a <= 12 }1116 1117 =head1 one1118 1119 - junctive XOR operator1120 1121 =head1 only1122 1123 - subroutine modifier, permits only a routine of the same name1124 1125 =head1 or1126 1127 - logical or operator1128 1129 =head1 orelse1130 1131 - logical OR short circuit operator, transferring an Error code from first to second block/command, if first do not succeed1132 1133 =head1 our1134 1135 (var scope) - makes a variable or subroutine name visible in all the current package1136 1137 =head1 ov1138 1139 - (regex modifier) - searching at all positions just one time (with backtracking), short for ":overlap"1140 1141 =head1 overlap1142 1143 - (regex modifier) - searching at all positions just one time (with backtracking), long for ":ov"1144 1145 =head1 p1146 1147 (filetest op) - file is a named pipe (FIFO), or filehandle is a pipe1148 1149 =head1 p1150 1151 (<n>) - (regex modifier) - searching only on the nth (n is an int) position (counting from 0), short for ":pos"1152 1153 =head1 P51154 1155 - (regex modifier) - activate old Perl 5 regex rules, alias to :Perl51156 1157 =head1 p5=>1158 1159 (array op) - hash constructor, that works like in Perl 5, generates just a list that can converted in hash context to an hash1160 1161 =head1 package1162 1163 (block modifier) - defines this Block or File as namespace (almost like in Perl 5), some uses are now better to do with "module" and "class"1164 1165 =head1 Pair1166 1167 - data type1168 1169 =head1 pair1170 1171 (context op) - force pair context1172 1173 =head1 pairs1174 1175 (hash method) - returns all contents as an array or pairs (key,value)1176 1177 =head1 panic1178 1179 - (regex modifier) - overwriting a possible set :ratchet for all subrules (activates backtracking)1180 1181 =head1 parsed1182 1183 (sub trait) - this macro will be parsed once, it is hygienic, but own and later defined rules can't be applied, opposite of "reparsed"1184 1185 =head1 perl1186 1187 - evaluates the following string or content of the var on which is called this method, functions with "say" like a better Data::Dumper1188 1189 =head1 Perl51190 1191 - (regex modifier) - activate old Perl 5 regex rules, alias to :P5* pick (array method) - select a number of random vaues1192 1193 =head1 pop1194 1195 (array op & method) - removes and returns the last element in an array1196 1197 =head1 pos1198 1199 (<n>) - (regex modifier) - searching only on the nth (n is an int) position (counting from 0), long for ":p"1200 1201 =head1 postcircumfix1202 1203 (grammatical category) - operator namespace of ops, that stay after one statement or variable, but do surround a second (like braces in $a[2])1204 1205 =head1 postfix1206 1207 (grammatical category) - operator namespace of ops, that stay after a statement or variable (like $a++)1208 1209 =head1 prefix1210 1211 (grammatical category) - operator namespace of ops, that stay before a statement or variable (like ++$a)1212 1213 =head1 print1214 1215 - sends characters to an output stream without adding a newline, see 'say'1216 1217 =head1 printf1218 1219 - formats text and sends it to standard output1220 1221 =head1 prompt1222 1223 - reading a line from $*IN formerly STDIN1224 1225 =head1 proto1226 1227 - predeclaration of subroutine or method1228 1229 =head1 push1230 1231 (array op & method) - adds a list of values to the end of an array1232 1233 =head1 Q1234 1235 - (generalized quoting op) - understands a list of adverbs1236 1237 =head1 q1238 1239 - (quoting op) - simple quoting (slashes and '), alias to '...' and Q :q /.../ and Q :single /.../1240 1241 =head1 q1242 1243 - (quoting adverb) - simple quoting (slashes and '), alias to '...' and q /.../, short for ":single"1244 1245 =head1 quote1246 1247 (grammatical category) - operator namespace, used to define new quoting ops with a macro1248 1249 =head1 quote_mod1250 1251 (grammatical category) - operator namespace, used to define new quoting adverbs1252 1253 =head1 quotewords1254 1255 - (quoting adverb) - split quoted string on words (on whitespaces) with quote protection (like in shell - '' and "" sourround words), long form of ":quotewords", used in < ... > and << ... >>1256 1257 =head1 qq1258 1259 - (quoting op) - double quoting, "q" with interpolation of variables, alias to "..." and Q :s, :a, :h, :f, :c, :b /.../ and Q :qq // and Q :double //1260 1261 =head1 qq1262 1263 - (quoting adverb) - double quoting, "q" with interpolation of variables, alias to "...", qq /.../ and Q :s, :a, :h, :f, :c, :b /.../, short for ":double"1264 1265 =head1 quasi1266 1267 (block modifier) - quasi quoting, the commented will be compiles and the AST will be returned as result, see also: code1268 1269 =head1 qw1270 1271 - (quoting op) - splits result on words (as in P5), alias to Q :q :w //1272 1273 =head1 qx1274 1275 - (quoting op) - execute as command and return results (as in P5), alias to Q :x //1276 1277 =head1 R1278 1279 <op> - (meta op) - reverse operands1280 1281 =head1 R1282 1283 - (filetest op) - check if file is readable by real uid/gid1284 1285 =head1 r1286 1287 - (filetest op) - check if file is readable by effective uid/gid1288 1289 =head1 rand1290 1291 - generate a floating point random number between 0.0 and 1.01292 1293 =head1 ratchet1294 1295 - (regex modifier) - deactivates backtracking, search starts at pos, where last match ended1296 1297 =head1 readline1298 1299 - now called 'get', reads from an input stream until the next newline1300 1301 =head1 redo1302 1303 - re-starts processing of the current loop1304 1305 =head1 regex1306 1307 - (routine type) - a pattern definition (without :ratchet and :sigspace), can be put in a grammar, similar to qr/.../ in Perl 51308 1309 =head1 regex1310 1311 - (quoting adverb) - parse as quoted string as regex1312 1313 =head1 reparsed1314 1315 (sub trait) - after parsing this macro, it will be reparsed, so that not hygienic, but its own and later defined rules can be applied, opposite of "parsed"1316 1317 =head1 return1318 1319 (flow control) - ends a subroutine and defines the value given to the caller1320 1321 =head1 returns1322 1323 - sub trait describing the type of value produced by a function1324 1325 =head1 reverse1326 1327 (array method) - returns all the members in the opposite order. Use "flip" to turn a string back to front and "invert" for hashes1328 1329 =head1 rindex1330 1331 - finds the last occurrence before a given position, of a substring within a string1332 1333 =head1 role1334 1335 - container for methods that can extend a class using does1336 1337 =head1 rule1338 1339 - alais for "regex :ratchet :sigspace" in a grammar, see regex, token1340 1341 =head1 rw1342 1343 - (Routine Trait) means read/write,1344 1345 =head1 rw1346 1347 - (regex modifier) - gives the regex the right to change the string (operand)1348 1349 =head1 rx1350 1351 - (regex quoting op) - creates anonymous regex, that can me then assigned into a var, alias to Q :regex // and regex (block modificator)1352 1353 =head1 S1354 1355 - (filetest op) - file is a socket1356 1357 =head1 s1358 1359 - (filetest op) - returns file size in bytes1360 1361 =head1 s1362 1363 - (quoting adverb) - demands evaluation of scalar variables, long form of ":scalar", included in "", qq and <<>>1364 1365 =head1 s1366 1367 - (regex quoting op) - perform a substitution based on rx-matches in place, creates anonymous regex, alias to Q :subst // and subst (block modificator)1368 1369 =head1 s1370 1371 - (regex modifier) - whitespace separates now subregex and don't stand for spaces to look for, short for ":sigspace", mm// is alias to m:sigspace//1372 1373 =head1 sameaccent1374 1375 - (regex modifier) - only for substitutions, replacing with chars that have the same accent pattern as the replaced, long for ":aa"1376 1377 =head1 samecase1378 1379 - (regex modifier) - only for substitutions, replacing with chars that have the same case pattern as the replaced, long for ":ii"1380 1381 =head1 samespace1382 1383 - (regex modifier) - smart space mapping for substitutions, long for ":ss", ss// is alias to s:samespace///, (ss/teh hsa/the has/;)1384 1385 =head1 say1386 1387 - a function like print that also appends a newline (\n)1388 1389 =head1 seed1390 1391 - initialize a random number generator, optionally with a value1392 1393 =head1 sigil1394 1395 (grammatical category) - word to name the namespace for sigils, used to redifine them or define your own with a macro1396 1397 =head1 signature1398 1399 (sub trait) -1400 1401 =head1 sigspace1402 1403 - (regex modifier) - whitespace separates now subregex and don't stand for spaces to look for, long for for ":s", mm// is alias to m:sigspace//1404 1405 =head1 single1406 1407 - (quoting adverb) - simple quoting (slashes and '), alias to '...' and q /.../, long for ":q"1408 1409 =head1 scalar1410 1411 - (quoting adverb) - demands evaluation of scalar variables, long form of ":s", included in "", qq and <<>>1412 1413 =head1 slurp1414 1415 - reads a entire file into a string1416 1417 =head1 special_variable1418 1419 (grammatical category) - namespace to define and redefine special variables with a macro1420 1421 =head1 split1422 1423 - makes an array of substrings from a string and a separator1424 1425 =head1 sprintf1426 1427 - like printf but returns the string instead of outputting it1428 1429 =head1 ss1430 1431 - (regex quoting op) - performs rx based substitution, spaces are just subrule separators, alias to s:samespace/.../.../1432 1433 =head1 ss1434 1435 - (regex modifier) - only for for substitution, whitespace separates subregexes like :sigspace, but also in the second part, short for ":samespace", ss// is alias to s:samespace///, (ss/teh hsa/the has/;)1436 1437 =head1 state1438 1439 - declares variables known only in the enclosing block, that retain their values between invocations1440 1441 =head1 sub1442 1443 (block modifier) - defines a subroutine1444 1445 =head1 submethod1446 1447 (block modifier) - defines methods, not inherited by subclasses1448 1449 =head1 subset1450 1451 - define a subtype, eg subset Month of Int where { 1 <= $^a <= 12 }1452 1453 =head1 subst1454 1455 (quote op) - scalar method to perform substitution, alias to s///1456 1457 =head1 subst1458 1459 - (quoting adverb) - parse as substitution1460 1461 =head1 substr1462 1463 - the scalar substring function like in Perl 51464 1465 =head1 T1466 1467 - (filetest op) - file is an ASCII text file (heuristic guess), (opposite of :B)1468 1469 =head1 t1470 1471 - (filetest op) - filehandle is opened to a tty (terminal)1472 1473 =head1 take1474 1475 - produces a return value in a gather block1476 1477 =head1 temp1478 1479 - defines variables as temporary, synonym for the Perl 5 "local"1480 1481 =head1 term1482 1483 (grammatical category) - namespace of terms, used to redifine them or make a new with a macro1484 1485 =head1 tighter1486 1487 (sub trait) - defines relative precedence of an operator as higher than another (given as Parameter)1488 1489 =head1 to1490 1491 - (quoting adverb) - defines end marker for the following heredoc, :to is short for :heredoc1492 1493 =head1 token1494 1495 - kind of regex :ratchet (no backtracking), part of a grammar1496 1497 =head1 tr1498 1499 - (quoting op) - transliteration (as in Perl 5), translating some character in a string into others, alias to Q :trans ///1500 1501 =head1 trans1502 1503 - (quoting adverb) - evals the quoted as transliteration aka tr ///1504 1505 =head1 true1506 1507 (term) - converts value into the boolean context, low precedence alternative to "?"1508 1509 =head1 true1510 1511 - boolean value aka Bool::True1512 1513 =head1 trusts1514 1515 - allows a class the acess to otherwised sealed namespaces1516 1517 =head1 twigil1518 1519 (grammatical category) - word to name the namespace for twigils, used to redifine them or define your own with a macro1520 1521 =head1 u1522 1523 - (filetest op) - report if file has setuid bit set1524 1525 =head1 uc1526 1527 - make all string chars uppercase1528 1529 =head1 ucfirst1530 1531 - make first char of a string uppercase1532 1533 =head1 undef1534 1535 - undefined, Perl word for 'empty'1536 1537 =head1 unless1538 1539 (block modifier) - flow control modifier, opposite of if, runs block if expression is false1540 1541 =head1 until1542 1543 (loop block modifier) - opposite of while, runs block repeatedly is long as expression is false1544 1545 =head1 unwrap1546 1547 - remove an enclosing subroutine1548 1549 =head1 use1550 1551 - load a module, import definitions, check Perl version1552 1553 =head1 value1554 1555 (pair method) - gets value (second) value of a pair1556 1557 =head1 values1558 1559 (hash method) - returns an array of just the values1560 1561 =head1 W1562 1563 - (filetest op) - check if file is writeable by real uid/gid1564 1565 =head1 w1566 1567 - (filetest op) - check if file is writeable by effective uid/gid1568 1569 =head1 w1570 1571 - (quoting adverb) - split quoted string on words (on whitespaces), no quote protection, short form of ":words", used in qw//1572 1573 =head1 want1574 1575 - produces a signature object that provides information about the context from which the current routine was called1576 1577 =head1 Whatever1578 1579 - an undefined type used as wildcard (like undef) (S12)1580 1581 =head1 when1582 1583 (block modifier) - executes its code block if a 'given' value smartmatches1584 1585 =head1 where1586 1587 - defines subtypes of data, eg subset Month of Int where { 1 <= $^a <= 12 }1588 1589 =head1 while1590 1591 (block modifier) - flow control modifier runs block repeatedly as long as en expression is true1592 1593 =head1 words1594 1595 - (quoting adverb) - split quoted string on words (on whitespaces), no quote protection, long form of ":w", used in qw//1596 1597 =head1 wrap1598 1599 - creates enveloping subroutine1600 1601 =head1 ww1602 1603 - (quoting adverb) - split quoted string on words (on whitespaces) with quote protection (like in shell - '' and "" sourround words), short form of ":quotewords", used in < ... > and << ... >>1604 1605 =head1 X1606 1607 (list op) - Cross product of two arrays, eg 1,2 X 3,4 == 1,3,1,4,2,3,2,4 ; alias of comb method1608 1609 =head1 X1610 1611 <op> - (meta op) - Cross product with hyper operator, eg <a b> X~ <y z> == <ay az by bz>1612 1613 =head1 X1614 1615 - (filetest op) - check if file is executable by real uid/gid1616 1617 =head1 x1618 1619 - (filetest op) - check if file is executable by effective uid/gid1620 1621 =head1 x1622 1623 (scalar string op) - string replicate operator to single string, eg 'ab' x 3 == 'ababab'1624 1625 =head1 x1626 1627 - (quoting adverb) - quoted string will be executed and replaced with its result, alias to Q :exec and qx //1628 1629 =head1 x1630 1631 (<n>) - (regex modifier) - searching n times (n is an int) with this pattern1632 1633 =head1 xor1634 1635 (scalar bool op) - boolean exclusive or operator, only true if only one operand is true1636 1637 =head1 xx1638 1639 (scalar string op) - string replicate operator to array, eg 'ab' xx 3 == <ab ab ab>1640 1641 =head1 Z1642 1643 (list op) - alias to zip (list op)1644 1645 =head1 z1646 1647 - (filetest op) - tests if file is empty (zero size)1648 1649 =head1 zip1650 1651 (list op) - zip operator, joines 2 lists eg 1,2,3,4 Z 8,9 == 1,8,2,91652 -
trunk/Padre-Plugin-Perl6/parse_perl6_table_index.pl
r5992 r5993 37 37 } 38 38 39 my $pod = ''; 39 my $pod = <<"POD"; 40 =head1 Perl 6 table index 41 42 This is the POD version of $url 43 44 =head1 AUTHORS 45 46 This POD was generated by Ahmad M. Zawawi <ahmad.zawawi\@gmail.com> via the tool: 47 http://svn.perlide.org/padre/trunk/Padre-Plugin-Perl6/parse_perl6_table_index.pl 48 49 For authors of the original wiki place, see: 50 http://www.perlfoundation.org/perl6/index.cgi?action=revision_list;page_name=perl_table_index 51 52 =head1 LICENSE 53 54 Copyright (c) 2006-2009 under the same (always latest) license(s) used by the Perl 6 /src 55 branch of the Pugs trunk. 56 57 =head1 Table index 58 59 POD 60 40 61 my @lines = split /\n/, $res->content; 62 my %help = (); 41 63 foreach my $line (@lines) { 42 64 chomp $line; 43 65 if($line =~ /<li><strong>(.+?)<\/strong>(.+?)<\/li>/) { 44 66 my ($item, $item_description)= (_to_text($1), _to_text($2) ); 45 $pod .= "=head1 $item\n\n$item_description\n\n"; 67 if($help{$item}) { 68 $help{$item} .= "\n$item_description"; 69 } else { 70 $help{$item} = "$item_description"; 71 } 46 72 } 73 } 74 75 foreach my $item (sort keys %help) { 76 $pod .= "=head2 $item\n\n" . $help{$item} . "\n\n"; 47 77 } 48 78
Note: See TracChangeset
for help on using the changeset viewer.
