Help for this page

Select Code to Download


  1. or download this
    # assigning from:
    my $foo = $bar ? $baz : $quux;
    
    # assigning 'to
    push @{ $row->{close_time} ? \@closed : \@open }, $row;
    
  2. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    
    push @{ @{ @{ @{ @{@open} } } } } => ['bar'];
    print Dumper(\@open);
    
  3. or download this
    $VAR1 = [
              'boo!',
              'boo!'
    ...
                'bar'
              ]
            ];
    
  4. or download this
        $bar = ${$scalarref};
        push(@{$arrayref}, $filename);
        ${$arrayref}[0] = "January";
        ${$hashref}{"KEY"} = "VALUE";
        &{$coderef}(1,2,3);