Help for this page

Select Code to Download


  1. or download this
    $KitDir = cwd;
    print "$KitDir\n";    # prints 'cwd'
    ...
    print "$Kdir\n";      # prints 'C:/TEMP'
    $Kdir =~ s|/|\\|g;    # not necessary! Don't!
    print "$Kdir\n";      # prints 'C:\TEMP'
    
  2. or download this
    $ENV{'KITDIR'} = $KitDir; #assigns $KitDir value to
                              #KITDIR key in ENV hash
    
  3. or download this
    $KitDir = $ENV{'KITDIR'};
    if ($KitDir eq "")
    {
        $KitDir = $Config::Conn{KitDir};
    }
    
  4. or download this
    $ENV{'KITDIR'} ||= $Config::Conn($KitDir);