my $inFile; ... if (!open ($inFile, '<', $fileName)) { ... if ($family{"sha$mode"}) { $dObj->addfile (*$inFile); ... if ($family{"sha${mode}_hex"}) { $dObj->addfile (*$inFile); ... if ($family{"sha${mode}_b64"}) { $dObj->addfile (*$inFile); ...
You can't use a typeglob with a lexical variable. Remove the '*' from in front of $inFile.
In reply to Re^2: Can I abstract these blocks into a function call?
by jwkrahn
in thread Can I abstract these blocks into a function call?
by dwhite20899
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |