in reply to Email Attachment

$ script.pl < diskfile.dat

or edit your script and use open