File: mytest.pl

package info (click to toggle)
liblib-abs-perl 0.95-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 368 kB
  • sloc: perl: 4,549; makefile: 2
file content (12 lines) | stat: -rwxr-xr-x 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

# This script can be run from anywhere, disrespecting cwd.
# this script calls module1 and module1 also uses lib::abs
# to use 'relative' as libdir.
# Also, after importing required modules it unimports relative,
# so this path will not stay in inc

use lib '../../lib';
use lib::abs 'lib';
use module1;
print STDERR "\@INC=\n".join "\n",@INC,"";