Help for this page
# Array evaluated in scalar context.
my $count = @array;
# The s/// operates on $copy.
(my $copy = $str) =~ s/\\/\\\\/g;
# Prints $x.
print($x = $y);
# Array evaluated in list context.
my @copy = @array;
# Only dies if f() returns an empty list.
# This does not die if f() returns a
# false scalar like zero or undef.
my ($x) = f() or die;
my $count = () = f();
# Prints @x.
print(@x = @y);
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (383 votes). Check out past polls.