tutorials:perl_quick_reference
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:perl_quick_reference [2010/08/13 19:29] – susanbruce | tutorials:perl_quick_reference [2018/12/19 10:59] (current) – chkuo | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| * ($): variable is a name for a container that holds one or more values; use $ to get the value. | * ($): variable is a name for a container that holds one or more values; use $ to get the value. | ||
| * (!): negation operator | * (!): negation operator | ||
| - | * (tr///): transliterating one group of characters into another. | + | * (tr): transliterating one group of characters into another. |
| - | * (s///): substitution | + | * (s): substitution |
| * (%): modulus operator: | * (%): modulus operator: | ||
| - | * /s : match any character with | ||
| - | * ! : negation operator and see P35 | ||
| * \s : shortcut for whitespace | * \s : shortcut for whitespace | ||
| * \s+ : match for one or more whitespace characters | * \s+ : match for one or more whitespace characters | ||
| - | | + | * /g : modifier-global |
| - | | + | * /d : modifier-delete found but unreplaced characters |
| - | * -p option : tells perl to write a program for you/file is a named pipe | + | |
| - | * -e option : executable code follow / file or directory name exist | + | |
| - | * /d : modifier delete found but unreplaced characters | + | |
| - | * (=~): right against string on the left | + | |
| * == : equal | * == : equal | ||
| * = : assignment operator | * = : assignment operator | ||
| Line 20: | Line 14: | ||
| * ( * ): match the preceding item 0 or more times | * ( * ): match the preceding item 0 or more times | ||
| * ( ^ ): the caret match the beginning of a line | * ( ^ ): the caret match the beginning of a line | ||
| - | * $ : match the end of a line or m | + | * $ : match the end of a line |
| - | * ~ : p169 of learning perl | + | |
| - | * cp : copy dir/file from one user to another | + | |
| - | * cd .. : home directory | + | |
| - | * head : output the first part of the file | + | |
| - | * perl : practical extraction | + | |
| - | * p74 drwxrwxr-x: file type (d):dir, (L): | + | |
| - | * chmod: (p80 - 81) | + | |
| - | * (u,g,o): user, group, other | + | |
| - | * (r,w,x): read, write, excute | + | |
| - | | + | |
| | | ||
| + | ===== installation ===== | ||
| + | * summary of configuration | ||
| + | * '' | ||
| + | * including the content of '' | ||
| + | * locate specific modules | ||
| + | * '' | ||
| | | ||
tutorials/perl_quick_reference.1281698964.txt.gz · Last modified: by susanbruce