Task

Run either the   ls   system command   (dir   on Windows),   or the   pause   system command.




Related task
  Get system command output


run "ls" orelse .die; # output to stdout
 
my @ls = qx/ls/;    # output to variable
 
my $cmd = 'ls';
@ls = qqx/$cmd/;  # same thing with interpolation