Guest User

Untitled

a guest
Jan 14th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. sub volume( $width, $length, $height ) { return [*] $width, $length, $height }
  2. say volume( 2, 3, 4 ); # 24
  3. say volume( :height(4), :length(3), :width(2) );
  4. # ^ Too few positionals passed; expected 3 arguments but got 0
Advertisement
Add Comment
Please, Sign In to add comment