in reply to How do I redirect STDERR to a subroutine?
If you really want to redirect *STDERR, then tieing is probably the way to go. But it seems to me (from what i can gather from your very short post) that maybe you really just want to catch all warnings that are generated by perl and act upon their contents. Maybe I am wrong, but if not then I think you might actually be looking for $SIG{__WARN__} instead. See the warn perl doc page for more info.
- stvn
|
|---|