Help for this page

Select Code to Download


  1. or download this
        open (CFGFILE, "ship.cfg") || die $!;
        while (my @TMP=<CFGFILE>) {
    ...
                }
            }
        }
    
  2. or download this
        open CFGFILE, "< ship.cfg" or die "read ship.cfg: $!";
        @hosts =
    ...
            <CFGFILE>;
        }
        close CFGFILE;
    
  3. or download this
        open CFGFILE, "< ship.cfg" or die "read ship.cfg: $!";
        while (<CFGFILE>) {
    ...
            push @hosts, $1;
        }
        close CFGFILE;