Re: Parsing binary file.

2004-06-15 Thread Jeff 'japhy' Pinyan
On Jun 15, Rod Za said: >I am trying to read a binary file (HP-PCL file >(windows printer)) to count the number of pages and >copies. You probably want to look at the unpack() function, which allows you to convert binary data into the stuff it represents. For instance, if you have read a string

Parsing binary file.

2004-06-15 Thread Rod Za
Hello all, I am trying to read a binary file (HP-PCL file (windows printer)) to count the number of pages and copies. Can someone help me? I got a C code that works good - but i want to do that in Perl to learn. thank you very much. Rod Za __