in reply to displaying pdf
I wouldn't use the lineread mode with <FILE> for that, it might end bad. I am not sure but I guess that is your problem.
Rather try the following thing, which works perfectly for me with .jpg files:
while (read FILE, my $data, 1024) { print $data; }
You can of course vary the length of your read buffer in the while loop to your likes, to optimize memory usage/speed.
HTH & HAND.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: displaying pdf
by nothingmuch (Priest) on Oct 21, 2002 at 21:22 UTC |