Help for this page

Select Code to Download


  1. or download this
    open(DAT, $data_file) || die("Could not open file!");
    print "file opened successfully!! \n";
    
  2. or download this
    while (<DAT>)
    {
       ...do something....
       ... print if /$pattern/;  # simple first attempt
    }