in reply to Grabbing Jpeg Captions
you will realize that all it really does is store the first "line" of the file into $photo_header. Just replace this block with$cnt=0; #We want 1st of 2 records. while (<PHOTO_IN>) { #Read Photo... if ("$cnt"<1) { # Have Photo Header... $photo_header="$_"; # Save Photo Header... ++$cnt; # Bump count to skip photo. } }
and you'll save a lot of time by not reading the rest of the file.$photo_header = <PHOTO_IN>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Grabbing Jpeg Captions
by devmage (Initiate) on Sep 30, 2003 at 17:25 UTC |