"be consistent" | |
PerlMonks |
Re: Call a function from DLLby Discipulus (Canon) |
on Jul 15, 2019 at 06:51 UTC ( [id://11102849]=note: print w/replies, xml ) | Need Help?? |
Hello Cleware and welcome to the monstery and to the wonderful world of perl! I suspect nothing is wrong with your import: the error Undefined subroutine &main::Print refers to your statement Print($return); infact in perl you have print not Print and no parens are needed (or you'll get another error like print interpreted as function at.. ). Also do not never forget to use strict; use warnings; at the top of your perl programs. As per the Win32::API docs is good to check if the import was done (the two die in the below code):
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|