Re: $!
[email protected] (Larry Wall) Thu, 17 Aug 2000 10:11:54 -0700 (PDT)
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Message-ID | <[email protected]> |
Peter Scott writes: : Do we want to come up with any modifications to the scope of $! (I'm not : talking about the dual string-number nature)? I've occasionally been : flummoxed by looking at it when there hadn't really been an error (but it's : set anyway, randomly it seems); or calling some module method that failed : and then wondering whether $! tells me anything useful or not (did the : method make a failed system call?). : : I realize this is very pedestrian compared to the exception-handling stuff : we've been tossing around, which could largely be said to render the issue : moot; but I thought I'd shake the branches anyway and see what fell out. At minimum we could lexically scope $! to the current file. I would hate to lose the notational convenience of $!. Larry