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/06/05 08:42] 170.254.31.111 old revision restored (2013/09/15 03:00) |
notes:perl_cheat_sheet [2026/06/07 22:32] (current) 114.119.135.37 old revision restored (2013/09/15 02:44) |
||
|---|---|---|---|
| Line 94: | Line 94: | ||
| * '' | * '' | ||
| print sort <>; | print sort <>; | ||
| - | * C-like printf function %g for number auto-format, | + | * 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 ===== | ||