in reply to Re^2: using warn instead or print STDERR?
in thread using warn instead or print STDERR?

More like 1. $SIG{__WARN__} allows me to decide what to do with my warnings at some later time, without needing to substitute every warn() call if I need things differently. See %SIG.
# debugger, please slow down when you see keyword $SIG{__WARN__} = sub { $DB::single = $_[0] =~ /keyword/; warn(@_) }

Replies are listed 'Best First'.
Re^4: using warn instead or print STDERR?
by ryanc (Monk) on Feb 27, 2009 at 05:12 UTC
    Very good. I took your use of the word 'someday' a bit too literally, instead of what you meant: sometime later in the running of your code.

    cheers.
    ryanc