in reply to Filehandle with DKIM::Verifier
> $dkim->load(*STDIN); I have tried to load the file with a filehandle like $dkim->load(<fh>); or $dkim->load($filename); .
I think you are confusing filehandle with filename.
You need to open a filehandle to a file (and close it afterwards)
Something like
open(my $fh, "<", "$filename") or die "Can't open < $filename: $!" $dkim->load($fh); ...
should do. (Untested)
HTH :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Filehandle with DKIM::Verifier
by nifu (Novice) on Oct 16, 2017 at 07:48 UTC | |
by hippo (Archbishop) on Oct 16, 2017 at 08:11 UTC | |
by nifu (Novice) on Oct 16, 2017 at 08:18 UTC | |
by hippo (Archbishop) on Oct 16, 2017 at 10:23 UTC |