Subject: | position in file is altered after reading |
After File::MMagic reads a file handle, it doesn't put the position back where it found it.
If the position started out at the beginning, the command to return it would be:
seek($fh,0,0);
The current behavior caused me hours of wondering why '%PDF-' was missing from my file.
Mark