Help for this page

Select Code to Download


  1. or download this
    Legal in perl5:
    
    ...
     my $foo = foo (1);           # C
     my $foo = foo      (    1    # D
               );
    
  2. or download this
    my $foo = $object->method (1)
                     ->method (2)
                     ->method (3);
    
  3. or download this
    my $foo = $object.method(1)
                     .method(2)
                     .method(3);
    
  4. or download this
    $ cat t.pl
    use v6;
    ...
            statement end
            statement modifier
            statement modifier loop
    
  5. or download this
    cat t.pl
    use v6;
    ...
     .say;
    $ perl6 t.pl
    C.new(x => -1)