Device::ParallelPort::drv::auto - Automatically choose driver.


Device-ParallelPort documentation  | view source Contained in the Device-ParallelPort distribution.

Index


NAME

Top

Device::ParallelPort::drv::auto - Automatically choose driver.

SYNOPSIS

Top

	use Device::ParallelPort;
	my $pp = Device::ParallelPort->new('auto:0');

DESCRIPTION

Top

This module should be used if you do not care what driver is used. It is very handy for writing cross platform applications in that it will autoamtically determine which parallel port driver is appropriate.

See Device::ParallelPort for full details.

DEVELOPMENT

Top

The current nature of it requires modifications to this module to add new drivers. Longer term it would be better if it tried each driver installed on the system in turn allowing new drivers to add their own interfaces.

As such, the current version only detects between three drivers.

	* parport - If linux and has a writable /dev/parportX
	* linux - If linux and running as root (and no parport)
	* win32 - If running on windows

NOTE - You MUST have the driver mentioned above loaded on your system for this to work. They are each SEPARATELY available in CPAN.

COPYRIGHT

Top

AUTHOR

Top

Scott Penrose scottp@dd.com.au, http://linux.dd.com.au/

SEE ALSO

Top

Device::ParallelPort


Device-ParallelPort documentation  | view source Contained in the Device-ParallelPort distribution.