/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/File-Copy-Link/blib/html/site/lib/File/Spec/Link.html


Object methods</pre> <dl> <dt><strong><a name=``new'' class=``item''><code>new([$path])</code></a></strong>

<dd> <p>create new path object: stores path as a list</p> </dd> </li> <dt><strong><a name=``path'' class=``item''><code>path</code></a></strong>

<dd> <p>returns path as a string, using catpath</p> </dd> </li> <dt><strong><a name=``canonical'' class=``item''><code>canonical</code></a></strong>

<dd> <p>returns canonical path, using canonpath</p> </dd> </li> <dt><strong><a name=``vol'' class=``item''><code>vol</code></a></strong>

<dd> <p>returns volume element of path, see File::Spec-&gt;splitpath</p> </dd> </li> <dt><strong><a name=``dir'' class=``item''><code>dir</code></a></strong>

<dd> <p>returns directory element of path, as a string, see File::Spec-&gt;splitpath</p> </dd> </li> <dt><strong><a name=``dirs'' class=``item''><code>dirs</code></a></strong>

<dd> <p>return list of directory components in path, see File::Spec-&gt;splitdir</p> </dd> <dd> <pre>

C&lt;&lt; pop &gt;&gt;</pre> </dd> <dd> <p>remove last component of the path</p> </dd> </li> <dt><strong><a name=``push'' class=``item''><code>push($file)</code></a></strong>
<dd> <p>add a file component to the path, ignoring empty strings</p> </dd> </li> <dt><strong><a name=``add'' class=``item''><code>add($file)</code></a></strong>

<dd> <p>add a component to the path: treating <code>updir</code> as <a href=``../../../../lib/pod/perlrun.html#pop''><code>pop</code></a>, and ignoring <code>curdir</code> and empty strings</p> </dd> </li> <dt><strong><a name=``split'' class=``item''><code>split($path)</code></a></strong>

<dd> <p>populate a path object, using splitpath</p> </dd> </li> <dt><strong><a name=``chop'' class=``item''><code>chop</code></a></strong>

<dd> <p>remove and return a file component from path, an empty string returns means this was root dir.</p> </dd> <dd> <pre>

C&lt;&lt; relative($path) &gt;&gt;</pre> </dd> <dd> <p>replace the path object with the supplied path, where the new path is relative to the path object</p> </dd> </li> <dt><strong><a name=``follow'' class=``item''><code>follow</code></a></strong>
<dd> <p>follow the link, where the path object is a link</p> </dd> </li> <dt><strong><a name=``resolved'' class=``item''><code>resolved</code></a></strong>

<dd> <p>resolve the path object, by repeatedly following links</p> </dd> <dd> <pre>

C&lt;&lt; resolvedir &gt;&gt;</pre> </dd> <dd> <p>resolve the links at all component levels within the path object</p> </dd> </li> </dl> <p> </p> <h2><a name=``other_class_methods''>Other class methods</a></h2> <dl> <dt><strong><a name=``canonpath'' class=``item''><code>canonpath($path)</code></a></strong>
<dd> <p>Wrapper round File::Spec::canonpath, fatal if empty input</p> </dd> </li> <dt><strong><a name=``catdir'' class=``item''><code>catdir(@dirs)</code></a></strong>

<dd> <p>Wrapper round File::Spec::catdir, returns <code>curdir</code> from empty list</p> </dd> </li> <dt><strong><a name=``splitlast'' class=``item''><code>splitlast($path)</code></a></strong>

<dd> <p>Get component from <code>$path</code> (using <a href=``#chop''><code>chop</code></a>) and returns remaining path and compenent, as strings. [Not used]</p> </dd> </li> </dl> <p> </p> <h2><a name=``export''>EXPORT</a></h2> <p>None - all subs are methods for <code>File::Spec::Link</code>.</p> <p> </p> <hr /> <h1><a name=``see_also''>SEE ALSO</a></h1> <p>File::Spec(3) File::Copy::Link(3)</p> <p> </p> <hr /> <h1><a name=``author''>AUTHOR</a></h1> <p>Robin Barker, &lt;<a href=``mailto:Robin.Barker@npl.co.uk''>Robin.Barker@npl.co.uk&gt;</p> <p> </p> <hr /> <h1><a name=``copyright_and_license''>COPYRIGHT AND LICENS©RIGHT AND LICENS;/a></h1> <p>Copyright 2003, 2005, 2006 by Robin Barker</p> <p>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

</body>

</html>

 /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/File-Copy-Link/blib/html/site/lib/File/Spec/Link.html