---
name: "wml::sup::path"
section: "3"
platform: "linux"
package: "wml"
version: "2.32.0~ds1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/wml::sup::path"
---

# wml::sup::path(3)

Filesystem Path Manipulation

## NAME

wml::sup::path - Filesystem Path Manipulation

## SYNOPSIS

```
 #use wml::sup::path
 <: $relpath = relpath($from, $to); :>
 <: $path    = canonpath($path);    :>
 <: $url     = canonurl($url);      :>
```

## DESCRIPTION

This include file provides the Perl functions `"relpath"`, `"canonpath"` and `"canonurl"` which calculate relative and canonical paths/urls.  For example, the relative path from */foo/path/bar/quux* to */foo/path/foobar* is calculated to *../../foobar* and the canonical path of *./foo/./bar/../quux//* is *foo/quux/*.

## AUTHOR

```
 Ralf S. Engelschall
 rse@engelschall.com
 www.engelschall.com
```

## REQUIRES

```
 Internal: P1, P3
 External: --
```

## SEE ALSO

[**perl**(1)](/perl/1.md)
