I am a newbie to Perl
. Sorry for my stupid question.
I have some code like this:
bintest.pl
subfolder/sample.pl
And in the sample.pl
, some is defined like this:
#!/usr/bin/perl
use lib '.';
use lib '..';
use bintest qw(:DEFAULT
$client_routine
);
However, when I use perl sample.pl
in the subfolder
, I got this error:
Can't locate bintest.pm in @INC (@INC contains: .. . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at sample.pl line 6.
Am I missed anything? Could anyone give me some help?