Help for this page

Select Code to Download


  1. or download this
    sub contents {
      open (FH, "< $FileInfoName") or die "Can't open $FileInfoName for re
    +ad: $!";
    ...
     return @lines;
     close FH or die "Cannot close $FileInfoName: $!";
    }
    
  2. or download this
    use strict;
    use TYPFileInfo;
    ...
    print "\nLines: " . lines();
    print "\nType: " . type();
    print "\nContents: " . contents();