Changeset 13574 for trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
- Timestamp:
- May 31, 2007, 12:11:49 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
r13502 r13574 1 1 # Copyright (c) 2006 Paul Price, Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1. 49 2007-05-24 20:14:20price Exp $3 # $Id: Config.pm,v 1.50 2007-05-31 22:11:49 price Exp $ 4 4 5 5 package PS::IPP::Config; … … 296 296 my $fh; 297 297 unless (open $fh, '>', $name) { 298 carp "Unable to create file $name --- $!"; 299 exit($PS_EXIT_SYS_ERROR); 300 } 301 return $fh; 302 } 303 304 # Create and open file for appending 305 sub file_create_append 306 { 307 my $self = shift; # Configuration object 308 my $name = shift; # File name to check 309 310 $self->file_prepare( $name ); 311 312 my ($scheme) = $name =~ m|^(\S+):|; # The scheme, e.g., file://, path:// 313 if (defined $scheme) { 314 if ($scheme eq 'neb') { 315 $name =~ s|^(\S+):/*||; 316 $self->_neb_start(); 317 return $self->{nebulous}->open_create( $name ); 318 } 319 if ($scheme eq 'path' or $scheme eq 'file') { 320 $name = $self->convert_filename_absolute( $name ); 321 } 322 } 323 324 my $fh; 325 unless (open $fh, '>>', $name) { 298 326 carp "Unable to create file $name --- $!"; 299 327 exit($PS_EXIT_SYS_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.
