my $str = "here are some words"; my $count = () = $str =~ /\S+/g; #### my $last_operand = ("a", "b", "c"); # "c" my $true_or_false = /\w+/g; # 1 or "" my $dunno = some_function(); # who knows?!