rir has asked for the wisdom of the Perl Monks concerning the following question:
update: corrected misspelling of supersede to avoid propagating the error.
rir
I can't find the syntax to make supercede supersede work.
Be well,sub asub ( $ace, $deuce?, $trey? ) { say "$ace $deuce $trey"; } use Test; supersede sub asub( $ace, $deuce?, $trey? ) { # XXX die "asub"; } my $derr; try { asub( 1, 2, 3); CATCH { $derr = $!; } } ok( $derr eq "asub", "asub died" );
rir
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: P6: how to supersede
by moritz (Cardinal) on Jun 14, 2010 at 19:29 UTC | |
by Yary (Pilgrim) on Jun 14, 2010 at 20:28 UTC | |
by rir (Vicar) on Jun 14, 2010 at 20:31 UTC |
Back to
Seekers of Perl Wisdom