in reply to How do I get Cluck output into a log file?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
But cluck gives you more.
by tphyahoo (Vicar) on Dec 29, 2004 at 14:23 UTC | |
by steves (Curate) on Dec 29, 2004 at 16:03 UTC | |
by osunderdog (Deacon) on Dec 29, 2004 at 15:27 UTC |
In Section
Seekers of Perl Wisdom