The messages get output to stdout, but I guess cluck is returning 1 instead of the debugging message to my logMessage() function.
That is correct. cluck() doesn't return a message, it prints one, so the way you're trying to use it will not work. Carp has shortmess and longmess methods that return the message strings instead of outputting them. Those will work for what you're trying to do.
In reply to Re: How do I get Cluck output into a log file?
by steves
in thread How do I get Cluck output into a log file?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |