SPUG: Re: die from BEGIN; how suppress ugly message?
Tim Maher/CONSULTIX
tim at consultix-inc.com
Wed Jan 26 16:05:07 CST 2000
On Wed, Jan 26, 2000 at 02:00:42PM -0800, Tim Maher/CONSULTIX wrote:
> SPUGicans,
>
> Does anybody know an elegant, simple (might be asking too much there)
> way to trap/suppress/avoid this kind of ugly message when I call
> exit or die from within BEGIN?
>
> $ turbo_fax
> Usage: turbo_fax file1 [file2 . . .]
> BEGIN failed--compilation aborted at ./in_place line 19.
> $
Had a brainstorm just after posting the question to the list:
open STDERR, "> /dev/null"
does the trick. Anybody know other solutions?
*========================================================================*
| Tim Maher, PhD Consultix & (206) 781-UNIX/8649 |
| Pacific Software Gurus, Inc Email: tim at consultix-inc.com |
| UNIX/Linux & Perl Training http://www.consultix-inc.com |
| 2/22: UNIX 2/28: Perl Modules 2/29: Int. Perl 3/3: Pattern Matching |
*========================================================================*
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list
mailing list