Help for this page

Select Code to Download


  1. or download this
    {
      # the values of the following hash are subs defined elsewhere
    ...
        seed( @seed );
      }
    }
    
  2. or download this
            elsif ($sym =~ 'auto') {
                # To auto-seed or not
                $auto_seed = $sym =~ /no|!/;
    
            }
    
  3. or download this
            elsif ($sym =~ /^(no|!)?auto$) {
              $auto_seed = not defined $1;
            }
    
  4. or download this
            elsif ($sym eq 'auto') {
              # To auto-seed or not
              $auto_seed = 1;  # default value for $auto_seed should be 0
            }
    
  5. or download this
            {
               no strict 'refs';
               *{"${pkg}::$sym"} = \&$sym;
            }
    
  6. or download this
                eval { require LWP::UserAgent; };
                if ($@) {
                    push(@errors, "Failure loading LWP::UserAgent: $@");
                    next;
                }
    
  7. or download this
                eval { require LWP::UserAgent }
                  or do {
    ...
                            "Failure loading LWP::UserAgent: $@";
                          next;
                        };