Help for this page

Select Code to Download


  1. or download this
    my $conf = which_conf($configuration_file);
    if (-f $conf) {
    ...
        close($conffile);
        unshift(@ARGV, @conf_args) if @conf_args;
    }
    
  2. or download this
    my $conf = which_conf($configuration_file);
    if (-f $conf) {
        my @conf_args;
        open(my $conffile, '<', "$conf")
            or warn "$P: Can't find a readable $configuration_file file $!
    +\n";
    
  3. or download this
        while (<$conffile>) {
            my $line = $_;
    
  4. or download this
            $line =~ s/\s*\n?$//g;
    
  5. or download this
            $line =~ s/^\s*//g;
    
  6. or download this
            $line =~ s/\s+/ /g;
    
  7. or download this
            next if ($line =~ m/^\s*#/);
            next if ($line =~ m/^\s*$/);
    
  8. or download this
            my @words = split(" ", $line);
            foreach my $word (@words) {
                last if ($word =~ m/^#/);
                push (@conf_args, $word);
            }
    
  9. or download this
        close($conffile);
    
  10. or download this
        unshift(@ARGV, @conf_args) if @conf_args;