Is the special Embperl filehandle "LOG" accessible to external subroutines
called in embperl pages? (I hope this isn't too elementary a question.)
I have an embperl page that contains code like this:
[- use MyModule.pm; -]
[- MyModule::my_subroutine("argument"); -]
MyModule.pm is a file external to the embperl page. The subroutine is
executed as you would expect.
However, the subroutine contains some expressions for when things go wrong:
[- print LOG "[$$]TEST: some error message here\n"; -]
If this code were contained in the embperl page itself, it would show up in
the embperl logfile. However, when it's in the subroutine defined in an
external file, even though that module is used in the embperl page, the
message does not get written to the log file. (Also, nothing shows up in
the Apache error logs about an undefined file handle.)
Am I missing something really basic?
I assume I'll have to make my subroutine return arrays of error and log
messages, thus:
[- ($return_value, $ref_to_array_of_errors,
$ref_to_array_of_log_messages) =
MyModule::my_subroutine("argument"); -]
=================================================
Michael Boudreau
Senior Electronic Publishing Developer
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637-2954
phone: 773 753 3298
fax: 773 753 3383
=================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]