Help for this page

Select Code to Download


  1. or download this
    sub foo {
    #   return @_ ? @_ : @{[7, 76543]};
    ...
    
    say "as a list: ", join " ", foo();
    say "as int: ", int foo();
    
  2. or download this
    my foo = either scalar or reference;
    
    foo[] foo() foo{} foo[](){}[];     # implicit -> and autovivify