File: easypath.pl

package info (click to toggle)
kildclient 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,016 kB
  • ctags: 1,649
  • sloc: ansic: 22,284; xml: 6,381; sh: 4,266; perl: 2,213; makefile: 178
file content (13 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
package easypath;
#: Version: 1.0.0
#: Description: Adds a shortcut to paths: #<path>
#: Author: Eduardo M Kalinowski
#
# $Id: easypath.pl,v 1.1 2005/03/28 19:21:37 ekalin Exp $

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

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