$ mkdir -p /tmp/foo/bar $ echo 'require "routines.pl";' > /tmp/foo/bar/main.pl $ echo 'print "foo!\n";' > /tmp/foo/bar/routines.pl $ export PERL5LIB=/tmp/foo/bar $ perl /tmp/foo/bar/main.pl foo! $
See also the reference to @INC in perlvar.
In reply to Re: using "require" problem
by hippo
in thread using "require" problem
by gauss76
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |