Changeset 13589
- Timestamp:
- May 31, 2007, 7:42:14 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
r13579 r13589 1 1 # Copyright (c) 2006 Paul Price, Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1.5 1 2007-06-01 01:00:26 price Exp $3 # $Id: Config.pm,v 1.52 2007-06-01 05:42:14 eugene Exp $ 4 4 5 5 package PS::IPP::Config; … … 166 166 sub caturi 167 167 { 168 my $base = shift; # Base name (might be " path://SOMETHING" or "neb://SOMETHING")168 my $base = shift; # Base name (might be "foo /foo path://SOMETHING" or "neb://SOMETHING") 169 169 my @segments = @_; # Path segments 170 170 171 carp "base is not inited" if not defined $base; 171 172 my ($scheme) = $base =~ m|^(\S+):|; # The scheme, e.g., file://, path:// 172 173 $base =~ s|^\S+:/*||; 173 my $root = '/' if $base =~ m|^/|; # Any root slashes? 174 175 my $root = ''; 176 if ($base =~ m|^/|) { $root = '/'; } 174 177 175 178 unshift @segments, $base if $base =~ /\S+/;
Note:
See TracChangeset
for help on using the changeset viewer.
