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