Help for this page

Select Code to Download


  1. or download this
    for @foo -> \element { say element }
    
  2. or download this
    my %hash;
    my \foo = %hash<FOO>;
    dd %h;      # Hash %h = {}
    foo = 42;
    dd %h;      # Hash %h = {:FOO(42)}
    
  3. or download this
    $ perl6 -e 'say BAR'
    ===SORRY!=== Error while compiling -e
    Undeclared name:
        BAR used at line 1
    
  4. or download this
    use DBI:from<Perl5>;
    use DBD::mysql:from<Perl5>;
    my $dbh = DBI.connect(...);   # call DBI->connect(...) under the hood