Changeset 13262
- Timestamp:
- May 4, 2007, 3:06:52 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
r13260 r13262 1 1 # Copyright (c) 2006 Paul Price, Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1.4 1 2007-05-05 00:54:10 jhoblittExp $3 # $Id: Config.pm,v 1.42 2007-05-05 01:06:52 eugene Exp $ 4 4 5 5 package PS::IPP::Config; … … 11 11 12 12 use Carp qw( carp ); 13 use File::Spec 3.19; 13 # use File::Spec 3.19; 14 use File::Spec 0.87; 14 15 use PS::IPP::Metadata::Config 1.00; 15 16 use Getopt::Long 2.35 qw( GetOptions :config gnu_getopt pass_through ); # Set pass_through so we don't kill @ARGV … … 62 63 GetOptions( 'site=s' => \$name ); 63 64 $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;65 if (not defined $name and defined $ENV{HOME}) { 66 $name = $ENV{HOME} . '/.ipprc'; 67 } 67 68 68 69 my $file; # File handle
Note:
See TracChangeset
for help on using the changeset viewer.
