- or download this
use strict;
use warnings;
...
print WRITEHANDLE "Test!\n";
close WRITEHANDLE;
wait;
- or download this
open IN, "<&", $ARGV[0] or die $!;
binmode IN;
...
print "line $_";
}
close IN;
- or download this
open IN, "<&", $ARGV[0] or die $!;
binmode IN;
my $s = <IN>;
print "line: $s";
close IN;
- or download this
perl main.pl subcommand1.pl
- or download this
perl main.pl subcommand2.pl
- or download this
cat subcommand1.pl | perl subcommand1.pl 0