GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PERLREQ::UTILS (3)

.ds Aq ’

NAME

PerlReq::Utils - auxiliary routines for B::PerlReq, perl.req and perl.prov

CONTENTS

DESCRIPTION

This module provides the following convenience functions:
<B>path2modB> Convert file path to module name, e.g. File/Find.pm -> File::Find.
<B>mod2pathB> Convert module name to file path, e.g. File::Find -> File/Find.pm.
<B>path2depB> Convert file path to conventional dependency name, e.g. File/Find.pm -> perl(File/Find.pm). Note that this differs from RedHat conventional form perl(File::Find).
<B>mod2depB> Convert module name to conventional dependency name, e.g. File::Find -> perl(File/Find.pm). Note that this differs from RedHat conventional form perl(File::Find).
<B>verfB> Format module version number, e.g. 2.12 -> 2.120. Currently truncated to 3 digits after decimal point, except for all zeroes, e.g. 2.000 -> 2.0.

Update. The algorithm has been amended in almost compatible way so that versions do not lose precision when truncated. Now we allow one more .ddd series at the end, but .000 is still truncated by default, e.g. 2.123 -> 2.123, 2.123456 -> 2.123.456.

<B>verf_perlB> Format Perl version number, e.g. 5.005_03 -> 1:5.5.30.
<B>sv_versionB> Extract version number from B::SV object. v-strings converted to floats according to Perl rules, e.g. 1.2.3 -> 1.002003.
<B>argvB> Obtain a list of files passed on the command line. When command line is empty, obtain a list of files from standard input, one file per line. Die when file list is empty. Check that each file exists, or die otherwise. Canonicalize each filename with File::Spec::rel2abs() function (which makes no checks against the filesystem).
<B>incB> Obtain a list of Perl library paths from @INC variable, except for current directory. The RPM_PERL_LIB_PATH environment variable, if set, is treated as a list of paths, seprarated by colons; put these paths in front of the list. Canonicalize each path in the list.

Finally, the RPM_BUILD_ROOT environment variable, if set, is treated as installation root directory; each element of the list is then prefixed with canonicalized RPM_BUILD_ROOT path and new values are put in front of the list.

After all, only existent directories are returned.

<B>explodeB> Split given filename into its prefix (which is a valid Perl library path, according to the inc() function above) and basename. Return empty list if filename does not match any prefix.

AUTHOR

Written by Alexey Tourbin <at@altlinux.org>.

COPYING

Copyright (c) 2004 Alexey Tourbin, ALT Linux Team.

This is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

SEE ALSO

B::PerlReq, perl.req, perl.prov
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PERLREQ::UTILS (3) 2011-11-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.