File: easypath.pl

package info (click to toggle)
kildclient 2.5.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,540 kB
  • ctags: 1,595
  • sloc: ansic: 21,480; xml: 6,112; sh: 4,000; perl: 2,134; makefile: 178; sed: 16
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.");
}