my $days_per_year = 365; # In case the number of days in a year changes ;-) ... if (@calendar < $days_per_year) { warn "Hold on, Cinderella -- you're calendar isn't full yet.\n"; }