Help for this page

Select Code to Download


  1. or download this
        $object->method($a,@b,%c);
        method $object: $a, @b, %c;
    
  2. or download this
        \($object: $a, @b, %c)
    
  3. or download this
        sub foo (Num Dog|Cat $numdog, MySig \$a ($i,$j,$k,$mousestatus)) {
    +...}
    
  4. or download this
        foo($mynumdog, \(1, 2.7182818, 1.0i, :mice($ms))
    
  5. or download this
        foo($mynumdog, \(1, 2.7182818, 1.0i, $ms)
    
  6. or download this
    @x[f()] = g(); # list context for f() and g()
    @x[f()] = +g(); # list context for f(), scalar context for g()
    @x[+f()] = g(); # scalar context for f() and g()