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);
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (345 votes). Check out past polls.