Help for this page

Select Code to Download


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