1 | $now= "Todays date: " . `date`; # sets $now to be the specified label followed by the result of shell's date command |
2 | `who` would naturally return a set of lines and the result can be stored in an array -- one array entry for each output line |
3 | Both system and backquote mechanism invoke a shell command which normally share standard input, standard output and standard error with the Perl program |
4 | This can be reset as for instance in |
5 | `rm fred 2>&1`; # using shell syntax to send standard error to same place as standard output |