Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: [Perl6] Slurpy array of named arguments?

by alexander_lunev (Pilgrim)
on Dec 05, 2016 at 19:13 UTC ( [id://1177271] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    class testing {
        method newhash(*%args) {
    ...
    }
    
    my $x = testing.newhash(a => 1, b => 2, c => 3, d => 4);