Parrot::IO::Path - Path
Parrot::IO::Path is an abstract superclass providing common path logic for
Instances created with
new() are cached so that there is only one unique instance for each path.
Returns the instance for
$path if it already exists,
otherwise it is created and cached.
A relative path is made absolute.
This is called from
new() to create the parent path if necessary.
Subclasses should reimplement this method to complete the task.
Returns the actual path.
Returns the name part of the path.
This will give you the name minus any .xyz suffix.
Use this to get the name's .xyz suffix or extension. If there is no suffix then the empty string is returned.
Finds out whether the name has a .xyz suffix.
Finds out whether the name suffix is
Note that if a name has no suffix and if
$suffix is the empty string then this method will return true.
Returns the path of the containing directory.
Used by subclasses to get information about the path.
Removes the instance from the cache, and undefines it.