Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub volume( $width, $length, $height ) { return [*] $width, $length, $height }
- say volume( 2, 3, 4 ); # 24
- say volume( :height(4), :length(3), :width(2) );
- # ^ Too few positionals passed; expected 3 arguments but got 0
Advertisement
Add Comment
Please, Sign In to add comment