Help for this page

Select Code to Download


  1. or download this
    $filename = $ARGV[0]; #corrected from @ARGV[0] as suggested by  eyepop
    +slikeamosquito
    open (FILE,"$filename") || die "Can't Open $filename: $!\n";
    ...
    foreach my $line(@LINES){ 
        #process something here
     }
    
  2. or download this
    $filename = $ARGV[0];
    open (FILE,"$filename") || die "Can't Open $filename: $!\n";
    ...
    while<FILE>{ #dealing with it per-lines
      #process something here
    }