File: easypath.pl

package info (click to toggle)
kildclient 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,584 kB
  • sloc: ansic: 24,834; xml: 7,516; sh: 5,022; perl: 2,876; makefile: 156; sed: 39
file content (11 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
package easypath;
#: Version: 1.0.1
#: Description: Adds a shortcut to paths: #<path>
#: Author: Eduardo M Kalinowski

$::world->alias('^#(.*)$', '/\$world->path("$1")', { name => 'easypath:path' });

sub help {
  $::world->echonl("Makes #<path> expand to the a path, as the $world->path()",
                   "function would do.");
}