Help for this page

Select Code to Download


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