- or download this
#!/usr/bin/perl -w
use strict;
system("echo foo");
- or download this
#!/usr/bin/perl -w
use strict;
my $res = system("/sys/command");
- or download this
#!/usr/bin/perl -w
use strict;
my $res = `/sys/command`;
- or download this
#!/usr/bin/perl -w
use strict;
my $file_handle;
...
chomp $line; # remove new line
do_something( $line );
}