develooper Front page | perl.perl6.language | Postings from January 2002

RE: catching warnings

Thread Previous
From:
David Whipp
Date:
January 21, 2002 11:23
Subject:
RE: catching warnings
Message ID:
000001c1a2b0$f08b0130$926464c4@intranet.fastchip.com
In light of Apo4, I thought I'd re-ask this question. Is the following still
the approved idiom, or will we have a nice little /[A-Z]+/ thingie:

sub foo
{
  temp $SIG{__WARN__} = sub {
    warn "$(timestamp) $@\n"
  }
  warn "hello"
}


Dave.
--
Dave Whipp, Senior Verification Engineer,
Fast-Chip inc., 950 Kifer Rd, Sunnyvale, CA. 94086
tel: 408 523 8071; http://www.fast-chip.com
Opinions my own; statements of fact may be in error.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About