Net::NBName should work for you, without having to install Samba. It's a standalone NetBIOS Name lookup module.
Also, the command to do a NetBIOS name lookup on Windows is nbtstat -A ip.ad.dr.ess.
Hope this helps.
Comment on Re: Re: Using CGI (Perl) and javascript at the same time