What would be the perl'ish way using map or some other sugar to check if a list of values meet some criteria? Instead of doing something like

my @issues = qq(123,456,a45);
my $max = 999;

for (@issues) {
  die if $_ < 0 or $_ > $max;
}

I want to check if each list item is numeric and > 0 but less than $max.

Cheers!

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to