Open perl
From Teknologisk videncenter
Piping from Perl to system commands
Getting STDOUT from commands
#!/usr/bin/env perl
print "Jeg er et perl program\n";
open FH,"ls -l|";
foreach my $i (<FH>) {
print "Har modtaget linien: $i";
}