Hello,
I am newbie in perl. I am currently working on a project to access the parallel port of a pc in perl on a linux operating system.

I really do not know where to start. Could anyone help me with useful links, books, resources..etc that could be of explicit help in accessing the parallel port using perl. I need this urgently if i am to finish my project on time.

Thanks

001

Recommended Answers

All 4 Replies

I'm pretty sure that the parallel port is a device in /dev, I'm not sure which one it will be (depends on which one you are trying to access), but you may have to do a sysread or syswrite on that device (there is probably a way to open it too) let me see:

http://linux.dd.com.au/quest/os-perl/parallelport/
http://www.geekinventions.com/modules.php?name=News&file=article&sid=6
http://search.cpan.org/~scott/Device-ParallelPort-1.00/lib/Device/ParallelPort.pm

That should get you on your way :)

thanks,but it is not comprehensive enough. i really need something from the basics.


001

so, you want to understand how the parallel port works with data, or binary, or what? I'm a little confused as to what exactly you need.

I understand how the parallel port works, what i want to understand are the codes that i can use to send and receive data from the parallel port using perl. something like a tutorial explaining the necessary codes would do.

thanks.

001

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.