- or download this
my $Usage = "Usage: $0 infile outfile\n";
...
open( OUT, ">$ARGV[1]" ) or die "Unable to write $ARGV[1]: $!\n$Usage"
+;
...
- or download this
converter.pl < some.input > some.output
# or
some_process | converter.pl | another_process
# or any combination of the above...
- or download this
while (<IN>) {
my @chars = split //;
...
print $out;
}
}