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>;
In reply to Re: Grabbing Jpeg Captions
by CombatSquirrel
in thread Grabbing Jpeg Captions
by devmage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |