This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:perl_cheat_sheet [2026/09/12 03:14] 47.79.206.169 old revision restored (2026/06/14 00:43) |
notes:perl_cheat_sheet [2026/09/14 05:19] (current) 185.11.17.58 old revision restored (2026/08/03 08:07) |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| * Parenthesis are optional unless part of syntax. | * Parenthesis are optional unless part of syntax. | ||
| * '' | * '' | ||
| - | * '' | ||
| ===== Numbers ===== | ===== Numbers ===== | ||
| Line 93: | Line 92: | ||
| print "It was $_ that I saw!\n"; | print "It was $_ that I saw!\n"; | ||
| }</ | }</ | ||
| - | * '' | ||
| - | print sort <>; | ||
| - | * C-like printf function %g for number auto-format, | ||
| - | my $format = "The items are: | ||
| - | printf $format, @items; | ||
| - | printf "The items are: | ||
| - | </ | ||
| - | * Filehandles can be barewords (upper-cased) or variables. Special filehandles are : STDIN, STDOUT, STDERR, DATA, ARGV, and ARGVOUT .<code perl> | ||
| - | open BEDROCK, '> | ||
| - | open LOG, '>>: | ||
| - | open BEDROCK, '>: | ||
| - | binmode STDOUT, ': | ||
| ===== User Subroutines ===== | ===== User Subroutines ===== | ||