then you can also use following code>perl /home/abcd/script.pl
BEGIN { if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { $runtimedir = $1; $program = $2; } } use strict; use lib $main::runtimedir;
In reply to Re^2: use lib problem.
by sanPerl
in thread use lib problem.
by tanger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |