use strict; my %you = ( understand => rand(2) % 2 ); our @things; if ($you{understand}) { @things = @things; } elsif (not $you{understand}) { @things = @things; }