I verified that the package is installed with perldoc -l Thread::Semaphore, but i still get this error:
Can't locate object method "down_force" via package "Thread::Semaphore" at <filename line#>
my code:
: #use perl
eval 'exec perl -S $0 ${1+"$@"}'
if 0;
use threads;
use threads::shared;
use Thread::Semaphore;
my $s = Thread::Semaphore->new();
$s->down_force(); #it complains about this one
#some code here...
You probably have version 2.09 of Thread::Semaphore, which doesn’t have the
down_force()method. Try upgrading to the most recent version, which is currently 2.12.