http://www.perlmonks.org?node_id=65099


in reply to TIMTOWTDI -- so long as it's not my way

#/usr/bin/perl -w use strict; #much other stuff.... #initializations etc.... foreach $file (@list_of_filenames){ open(THISFILE,'< $file') or warn "ERROR: Can't open $file!\n";#for + this application fail to open is not fatal.. binmode(THISFILE); $data = Digest::MD5->new->addfile(*THISFILE)->hexdigest; return unless ($data); #...process $data..... }
Gee, why does every file have the same digest?....
Maybe because open tries to open a file NAMED: " < $file " ?
I keep tripping on the q() vs qq() vs qw() vs qx()
differences....

_________________
madams@scc.net
(__) (\/) /-------\/ / | 666 || * ||----||