Help for this page

Select Code to Download


  1. or download this
    my $path;
    BEGIN {
    ...
       $path = "/www/domain/cgi-bin";
    }
    use lib $path;
    
  2. or download this
    use lib do {
       # Code that determines the path and returns it.
       "/www/domain/cgi-bin"
    };
    
  3. or download this
    sub get_lib_path {
       # Code that determines the path and returns it.
    ...
    }
    
    use lib get_lib_path();
    
  4. or download this
    # Hardcoded
    use lib "/www/domain/cgi-bin";