Alien-ROOT
view release on metacpan or search on metacpan
inc/inc_File-Fetch/File/Fetch.pm view on Meta::CPAN
which case the 'share' property will be defined. Additionally, volume
specifications that use '|' as ':' will be converted on read to use ':'.
On VMS, which has a volume concept, this field will be empty because VMS
file specifications are converted to absolute UNIX format and the volume
information is transparently included.
=item $ff->share
On systems with the concept of a network share (currently only Windows) returns
the sharename from a file://// url. On other operating systems returns empty.
=item $ff->path
The path from the uri, will be at least a single '/'.
=item $ff->file
The name of the remote file. For the local file name, the
result of $ff->output_file will be used.
inc/inc_File-Fetch/File/Fetch.pm view on Meta::CPAN
###
### In the case of file:// urls there maybe be additional fields
###
### For systems with volume specifications such as Win32 there will be
### a volume specifier provided in the 'vol' field.
###
### 'vol' => 'volumename'
###
### For windows file shares there may be a 'share' key specified
###
### 'share' => 'sharename'
###
### Note that the rules of what a file:// url means vary by the operating system
### of the host being addressed. Thus file:///d|/foo/bar.txt means the obvious
### 'D:\foo\bar.txt' on windows, but on unix it means '/d|/foo/bar.txt' and
### not '/foo/bar.txt'
###
### Similarly if the host interpreting the url is VMS then
### file:///disk$user/my/notes/note12345.txt' means
### 'DISK$USER:[MY.NOTES]NOTE123456.TXT' but will be returned the same as
### if it is unix where it means /disk$user/my/notes/note12345.txt'.
inc/inc_File-Fetch/File/Fetch.pm view on Meta::CPAN
my @parts = split '/',$uri;
### file://hostname/...
### file://hostname/...
### normalize file://localhost with file:///
$href->{host} = $parts[0] || '';
### index in @parts where the path components begin;
my $index = 1;
### file:////hostname/sharename/blah.txt
if ( HAS_SHARE and not length $parts[0] and not length $parts[1] ) {
$href->{host} = $parts[2] || ''; # avoid warnings
$href->{share} = $parts[3] || ''; # avoid warnings
$index = 4 # index after the share
### file:///D|/blah.txt
### file:///D:/blah.txt
} elsif (HAS_VOL) {
inc/inc_Module-Build/Module/Build/Base.pm view on Meta::CPAN
my $FIXOUT = IO::File->new(">$file.new")
or die "Can't create new $file: $!\n";
# Print out the new #! line (or equivalent).
local $\;
undef $/; # Was localized above
print $FIXOUT $shb, <$FIXIN>;
close $FIXIN;
close $FIXOUT;
rename($file, "$file.bak")
or die "Can't rename $file to $file.bak: $!";
rename("$file.new", $file)
or die "Can't rename $file.new to $file: $!";
$self->delete_filetree("$file.bak")
or $self->log_warn("Couldn't clean up $file.bak, leaving it there");
$self->do_system($c->get('eunicefix'), $file) if $c->get('eunicefix') ne ':';
}
}
sub ACTION_testpod {
inc/inc_Module-Build/Module/Build/ModuleInfo.pm view on Meta::CPAN
__END__
=for :stopwords ModuleInfo
=head1 NAME
Module::Build::ModuleInfo - DEPRECATED
=head1 DESCRIPTION
This module has been extracted into a separate distribution and renamed
L<Module::Metadata>. This module is kept as a subclass wrapper for
compatibility.
=head1 SEE ALSO
perl(1), L<Module::Build>, L<Module::Metadata>
=cut
inc/inc_Module-Build/Module/Build/WithXSpp.pm view on Meta::CPAN
=back
=head1 SEE ALSO
L<Module::Build> upon which this module is based.
L<ExtUtils::XSpp> implements XS++. The C<ExtUtils::XSpp> distribution
contains an F<examples> directory with a usage example of this module.
L<ExtUtils::Typemaps> implements progammatic modification (merging)
of C/XS typemaps. C<ExtUtils::Typemaps> was renamed from C<ExtUtils::Typemap>
since the original name conflicted with the core F<typemap> file on
case-insensitive file systems.
L<ExtUtils::Typemaps::Default> explains the concept of having typemaps
shipped as modules.
L<ExtUtils::Typemaps::ObjectMap> is such a typemap module and
probably very useful for any XS++ module.
L<ExtUtils::Typemaps::STL::String> implements simple typemapping for
( run in 0.391 second using v1.01-cache-2.11-cpan-131fc08a04b )