Re: autodie???

2016-11-21 Thread Luca Ferrari
On Mon, Nov 21, 2016 at 4:21 AM, ToddAndMargo wrote: > What does perl-autodie do (RHEL 7)? Here it is well explained: <http://search.cpan.org/~pjf/autodie-2.29/lib/autodie.pm>. Luca

Re: autodie???

2016-11-20 Thread Brandon Allbery
On Mon, Nov 21, 2016 at 12:06 AM, ToddAndMargo wrote: > My concern is that it will affect the operation of perl 5 It's a pragma that has to be explicitly enabled (`use autodie; ...`). It won't change the default behavior. -- brandon s allbery kf8nh

Re: autodie???

2016-11-20 Thread ToddAndMargo
On 11/20/2016 07:26 PM, Brandon Allbery wrote: On Sun, Nov 20, 2016 at 10:21 PM, ToddAndMargo <toddandma...@zoho.com> wrote: What does perl-autodie do (

Re: autodie???

2016-11-20 Thread Brandon Allbery
On Sun, Nov 20, 2016 at 10:21 PM, ToddAndMargo wrote: > What does perl-autodie do (RHEL 7)? > > yum install perl-autodie > > And why is it necessary to get Perl 6 to work? > It's normally part of a Perl install, but RH loves to break Perl by installing only about half

autodie???

2016-11-20 Thread ToddAndMargo
What does perl-autodie do (RHEL 7)? yum install perl-autodie And why is it necessary to get Perl 6 to work?

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-08 Thread Paul Fenwick
G'day Josh / p5p / p6l, given ($@) { # [snip] default{ say "Not an autodie exception." } } If you're going to write that into some documentation, I wish you'd make default say that it's exception suicid

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-08 Thread Joshua ben Jore
On Sun, Jun 1, 2008 at 7:31 PM, Paul Fenwick <[EMAIL PROTECTED]> wrote: > Currently, when testing exceptions from autodie, we can use: > >given ($@) { >when (undef) { say "No errors here" } >when ('open') { say &q

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Dave Whipp
Larry Wall wrote: On Wed, Jun 04, 2008 at 10:42:33AM -0400, Mark J. Reed wrote: : However, I think we are now officially *way* off topic for Perl6... Not really--a Klingon army is a *parallel* processor, and just because one Klingon dies doesn't mean the whole army should suddenly die too. Tradi

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Roland Giersig
Mark J. Reed schrieb: I think the simplest and most Klingonlike expression of the sentiment is simply this: yIQap pagh yIHegh! (Succeed or die!) But you could say something like: SuvwI' yIDa: yIHegh! bIlujchugh yIcheghQo'! (Behave as a warrior: die! If you fail, do not return!) Thanks for

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread David Nicol
On Wed, Jun 4, 2008 at 7:21 AM, Mark J. Reed <[EMAIL PROTECTED]> wrote: > The catch block is lexically contained within the try block, so the > inviolate nature of the curlies remains intact. thank you.

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Larry Wall
On Wed, Jun 04, 2008 at 10:42:33AM -0400, Mark J. Reed wrote: : However, I think we are now officially *way* off topic for Perl6... Not really--a Klingon army is a *parallel* processor, and just because one Klingon dies doesn't mean the whole army should suddenly die too. Traditional exception han

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Mark J. Reed
On Wed, Jun 4, 2008 at 9:09 AM, Roland Giersig <[EMAIL PROTECTED]> wrote: > batlh yiHegh SuvwI'mo! yIcheghbe' lujwI'mo'! > Die honorably as a warrior! Do not return as a looser! Not quite. mo' means "because of the ", so the above says something like 'die because of the warrior', 'return because

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Roland Giersig
Paul Fenwick wrote: [1] Klingon semantics: It is better to die() in the attempt than to return() in failure. I'll buy a beverage for whomever can help me translate that back into Klingon in time for OSCON. ;) The concept of "better ... than" is difficult to express and not very warrior-like.

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread Mark J. Reed
The catch block is lexically contained within the try block, so the inviolate nature of the curlies remains intact. On 6/3/08, David Nicol <[EMAIL PROTECTED]> wrote: > On Mon, Jun 2, 2008 at 6:50 PM, Larry Wall <[EMAIL PROTECTED]> wrote: > >>* Exception handlers run in the lexical context o

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-04 Thread David Nicol
On Mon, Jun 2, 2008 at 6:50 PM, Larry Wall <[EMAIL PROTECTED]> wrote: >* Exception handlers run in the lexical context of the block being >tried. >* Exception handlers run in the dynamic context of the code that is >failing. the first seems dangerous, esp. considering the

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-03 Thread Paul Fenwick
ally start parsing and calling functions, there is no distinction at all between different versions of "open", say. I think that chromatic's suggestion of roles is an excellent one. In P5 we certainly do have a concept of built-in (core) functions, and if nothing else autodie uses t

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-03 Thread Paul Fenwick
G'day chromatic / p5p / p6l, Make a list of all possible types of exceptions, define them as roles, and group them that way. Any given exception can implement multiple roles (:CORE and :io, for example, or a specialization of that role that also does :USER). Excellent point. I've been large

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-02 Thread Larry Wall
On Mon, Jun 02, 2008 at 12:31:34PM +1000, Paul Fenwick wrote: > G'day p6l and p5p, > > I'm currently working on the 'autodie' pragma for Perl 5, which is > essentially 'Fatal' but with lexical scope. It's similar to the 'fatal' > pra

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-02 Thread chromatic
make before I start fleshing > out the hierarchy for p5 autodie? Hierarchies suck, especially singly-rooted hierarchies. Then again, multiply-rooted hierarchies turn into big cyclic graphs. Make a list of all possible types of exceptions, define them as roles, and group them that way. An

Fatal/autodie exception hierarchies for Perl 5

2008-06-01 Thread Paul Fenwick
G'day p6l and p5p, I'm currently working on the 'autodie' pragma for Perl 5, which is essentially 'Fatal' but with lexical scope. It's similar to the 'fatal' pragma described in S04/Exceptions. autodie is implementing an exception hierarchy f