perl6/doc/lib/X/Phaser/Multiple

doc src
(title) class X::Phaser::Multiple
    class X::Phaser::Multiple does X::Comp

 
Thrown when multiple phasers of the same type occur in a block, but only one is allowed (for example CATCH or CONTROL ). Example
    CATCH { }; CATCH { }

 
Produces
    ===SORRY!===
    Only one CATCH block is allowed

 

Methods

(head2) block
Returns the name of the phaser that occured more than once.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: