IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13260


Ignore:
Timestamp:
May 4, 2007, 2:54:10 PM (19 years ago)
Author:
jhoblitt
Message:

turn off uninitialized warnings when looking up ENV{HOME}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r13250 r13260  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.40 2007-05-04 23:36:04 price Exp $
     3# $Id: Config.pm,v 1.41 2007-05-05 00:54:10 jhoblitt Exp $
    44
    55package PS::IPP::Config;
     
    6161    my $name;                   # Name of ipprc file
    6262    GetOptions( 'site=s' => \$name );
    63     $name = $ENV{PS_SITE} unless defined $name;
    64     $name = $ENV{HOME} . '/.ipprc' unless defined $name;
     63    $name = $ENV{PS_SITE} if not defined $name;
     64    no warnings qw( uninitialized );
     65    $name = $ENV{HOME} . '/.ipprc' if not defined $name;
     66    use warnings;
    6567
    6668    my $file;                   # File handle
Note: See TracChangeset for help on using the changeset viewer.