Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh
    INFILE=test.in
    ...
    if [ 0 -lt $non_comment_lines ]; then
      perl ./process_file.pl < $INFILE
    fi
    
  2. or download this
    #!/usr/bin/env perl
    use strict;
    ...
    if ($file =~ m/^#/) {
      print "process me!\n";
    }