use strict; use warnings; my $x; $x = ( 'abc', 'def' ) ; # Warns $x = sub { ( 'abc', 'def' ) }->(); # Doesn't warn