Hi all,
 
I have a file that simply contains a common set of functions, and wish to 
include this file across many scripts. Now, I use the following statements to 
do this...
 
eval "require 'F:\\SVN\\Scripts\\function_list.pl'";
print "Unable to include script: function_list.pl: $@" if $@;
 
... now with this 'function_list.pl' file I have function called 
'create_email'. I call this function from with the script that has the above 
'require' code in it and it works fine (in that it creates and sends an email) 
but the 'print' command runs and the statement 'Unable to include script: 
function_list.pl, did not return a value at (eval 1).' which is the second line 
of my require call above.
 
Why is it getting to this message when the function_list.pl file seems to be 
included fine, and the function within this file is executed fine?
 
Thanks
 
Tryst

The views expressed in this e-mail are not necessarily the views of AssetCo 
Group Limited,
its directors, officers or employees make no representation or accept any
liability for its accuracy or completeness unless expressly stated to the 
contrary.
This e-mail, and any attachments are strictly confidential and intended for the 
addressee(s) only.
The content may also contain legal, professional or other privileged 
information.  Unless expressly
stated to the contrary, no contracts may be concluded on behalf of AssetCo 
Group Limited by means of
e-mail communication. You may report the matter by calling us on +44 (0)118 906 
8000.
Please ensure you have adequate virus protection before you open or detach any 
documents from this
transmission. AssetCo Group Limited does not accept any liability for viruses. 
AssetCo Group Limited
is registered in England: Company number: 4450947
Registered Office: Davidson House, Forbury Square, Reading, Berkshire RG1 3GA

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to