- SCALAR context
- LIST context
SCALAR and LIST Context
my @a = ("zero", "one", "two", "three"); my @b = @a; # LIST context my $c = @a; # SCALAR context if (@a) { } while (@a) { }
my @a = ("zero", "one", "two", "three"); my @b = @a; # LIST context my $c = @a; # SCALAR context if (@a) { } while (@a) { }