Help for this page

Select Code to Download


  1. or download this
        @a = @b || @c;              # this is wrong
        @a = scalar(@b) || @c;      # really meant this
    
  2. or download this
    use strict;
    use Data::Dumper;
    ...
    my @c = @a or @b;  # equivalent to (my @c = @a) or @b;
    
    print Dumper(\@c);
    
  3. or download this
    $VAR1 = [
              1,
              2,
              3
            ];
    
  4. or download this
    use strict;
    use Data::Dumper;
    ...
    
    print Dumper(\@c);
    print Dumper(\@d);
    
  5. or download this
    $VAR1 = [
              1,
    ...
    $VAR1 = [
              3
            ];