I am attempting to set the bits on my parallel port using the cpan
module
Device::ParallelPort. I am using windows 98 and perl 5.8.0 build 804
and have sucessfully installed Device::ParallelPort using ppm.
The code I am using is
#!/usr/bin/perl -w

#
#   test parallel port module 
#
  
use LWP::Simple;
use Device::ParallelPort;

    my $port = Device::ParallelPort->new('auto:0');
$port->set_bit(3,1);
print $port->get_bit(3) . "\n";
print ord($port->get_byte(0)) . "\n";
exit;


The error I am getting is -
"Can't create driver auto- can't locate object method 'new' via
package
Device:ParallelPort:drv:auto at (eval 2) line 3"

I have looked through the code in the downloaded packages but
cannot see anything wrong although I am fairly new to the OO side
of Perl.

I have previously posted this on comp.lang.perl.modules but 
the suggestions I have received haven't worked.
If anyone can help or has an example of a working piece of code I
would be very grateful.
Thanks
Steve
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to