Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
@ls_output = `ls -l`;
@ls_output = `ls -l 2>&1`;
$ls_cmd = 'ls -l';
open(LS_CMD, "$ls_cmd |") or die "Can't run '$ls_cmd'\n$!\n";
$i=0;
while(<LS_CMD>){ # each line of output is put into $_
# this bit just illustrates how each line of output might be processed
[tab]next if /^total/; # because we're only interested in real output
[tab]$ls_output[$i++] = $_; # save output line in the array
}
$ls_cmd = 'ls -l 2>&1';