Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    print "In " , $filename, " there are ",
        $lines_num, " lines that start with \"X\".\n";
    
  2. or download this
    my input file contains as below
    X
    ...
    XXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXX