File: mytest.pl

package info (click to toggle)
liblib-abs-perl 0.92-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 372 kB
  • sloc: perl: 4,362; makefile: 17
file content (16 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl

# This script can be run from anywhere, disrespecting cwd, and always will found lib
# for ex:
#	* from current dir:
#		$ perl mytest.pl
#		# mytest use OK from /path/to/lib-abs/examples
#	* from /tmp by absolute path
#		$ perl /path/to/lib-abs/examples/mytest.pl
#		# mytest use OK from /tmp
#	* from /tmp by relative path
#		$ perl ../path/to/lib-abs/examples/mytest.pl
#		# mytest use OK from /tmp

use lib::abs '.';
use mytest;