I have made a CGI-Perl script which feeds back multple JPG images to a <IMG> tag client call. The multi images can run up to 200 JPGs. One thing that's for sure is the client won't sit there for all 200 JPGS to show on their screen as an animation (they'll leave my page to somewhere else). Now if this is the case, I'd hate for my CGI script to "keep sending" JPG images if there's no one watching it.
Therefore, I'd like to have my Perl script "immediately" stop sending images and quit if the client browser has stopped accepting images. I remeber such a command exists in Perl but I totally forget what it is. Would you know the answer?