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