my $filename = 'c:\\somefile'; my @input = `$ENV{COMSPEC} /c type "$filename"`; #### my $filename = 'c:\\somefile'; open my $fh, "<", $filename or die "Couldn't read '$filename': $!"; my @input = <$fh>; #### system($^X,"-w","path/to/other/script.pl");