[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Redirecting STDERR



At 14.37 -0400 1999.04.07, Robert Pollard wrote:
>Hey guys,
>
>This command which is actually an example in a book doesn't work.  I
>don't know much about MacPerl so I don't know what options I have.
>
>open(STDERR, '>Dev:Console:Messages');
>
>I thought it should open a window and send all error messages to the new
>window.  Now I can't get it to send the errors to the MacPerl window
>with the command:
>
>open(STDERR, '>Dev:Console:MacPerl');
>
>Anyone have an idea???

open(STDERR, '>Dev:Console:MacPerl');
warn "foo";
open(STDERR, '>Dev:Console:Messages');
warn "foo";

This opens one window and sends text to it, then another.  If you want text
to actually go the "real" MacPerl window, don't do anything, it goes there
by default.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org