Help for this page

Select Code to Download


  1. or download this
    while ($fh) {
      /^Confname/ or next;
      work_with $_;
      last;   ## if you want to process only the first ocurrence of such l
    +ine
    }
    
  2. or download this
    my @confnames = grep /^Confname/, <$fh>;
    ## if you want to process all lines:
    work_with $_ for @confnames;
    ## else:
    work_with $confnames[0];