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/16 09:06] 47.79.201.199 old revision restored (2026/06/15 21:31) |
notes:perl_cheat_sheet [2026/09/16 14:14] (current) 47.79.206.202 old revision restored (2026/09/04 21:49) |
||
|---|---|---|---|
| Line 92: | 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 ===== | ||