in reply to Re^3: Why won't call to SendEasy 'send' sub won't work?
in thread Why won't call to SendEasy 'send' sub won't work?

#!/usr/bin/perl Ok I've gone back to previous replies and put SendEasy and the folders and files below it in mylib directory as described:-
use CGI; use warnings; use strict; use lib 'd:/domains/sarahsfleeces.co.uk/wwwroot/cgi-bin/mylib'; use CGI::Carp qw/fatalsToBrowser/; use Mail::SendEasy;
and it then produces this error:-
Can't load 'd:/perl/lib/auto/IO/IO.dll' for module IO: load_file:Acces +s is denied at d:/perl/lib/XSLoader.pm line 64. at d:/perl/lib/IO.pm line 11 Compilation failed in require at d:/perl/lib/IO/Handle.pm line 263. BEGIN failed--compilation aborted at d:/perl/lib/IO/Handle.pm line 263 +. Compilation failed in require at d:/perl/lib/IO/Socket.pm line 11. BEGIN failed--compilation aborted at d:/perl/lib/IO/Socket.pm line 11. Compilation failed in require at d:/domains/sarahsfleeces.co.uk/wwwroo +t/cgi-bin/mylib/Mail/SendEasy/SMTP.pm line 50. BEGIN failed--compilation aborted at d:/domains/sarahsfleeces.co.uk/ww +wroot/cgi-bin/mylib/Mail/SendEasy/SMTP.pm line 50. Compilation failed in require at d:/domains/sarahsfleeces.co.uk/wwwroo +t/cgi-bin/mylib/Mail/SendEasy.pm line 29. BEGIN failed--compilation aborted at d:/domains/sarahsfleeces.co.uk/ww +wroot/cgi-bin/mylib/Mail/SendEasy.pm line 29. Compilation failed in require at d:\domains\sarahsfleeces.co.uk\wwwroo +t\cgi-bin\Send_Details.pl line 10. BEGIN failed--compilation aborted at d:\domains\sarahsfleeces.co.uk\ww +wroot\cgi-bin\Send_Details.pl line 10.
Which is odd because I thought it wasn't dependant on anything else?! So presumably I can go to the latest version of these files (that's compatible with this version of SendEasy) and copy these into 'mylib' too can I? Presumably I could end up copying half of Perl into the 'mylib' area though? Cheers Sarah

Replies are listed 'Best First'.
Re^5: Why won't call to SendEasy 'send' sub won't work?
by Corion (Patriarch) on Feb 04, 2009 at 17:15 UTC

    Nobody said it wasn't dependent on anything else. It was only said that it didn't depend on things not inside the Perl core. And the error message tells us that the stuff from the Perl core is even there, but you're not allowed to get at it:

    Can't load 'd:/perl/lib/auto/IO/IO.dll' for module IO: load_file:Acces +s is denied at d:/perl/lib/XSLoader.pm line 64. at d:/perl/lib/IO.pm line 11 Compilation failed in require at d:/perl/lib/IO/Handle.pm

    This means that your web hoster is running a broken setup and basically Perl will be mostly unusable on the hoster you have. Either tell their tech support to fix it or find a new hoster.

    As an explanation, the module IO::Handle is part of the Perl core and tries to load the file IO.dll which contains compiled parts needed for IO::Handle to work. IO::Handle is distributed with Perl, just as the IO.dll (or IO.so) part. Until your hosting support gives the web server user the permission to load these files, the Perl setup of that host will be broken.

      hey that's really helpful thank you everso much :) off to tell them... Sarah