Dear Jim,
Thank you for your detailed insight where I was lacking. It is greatly
appreciated. I learned a lot from this discussion.
Sincerely,
Shaji
---
Your talent is God's gift to you. What you do with it is your
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
On 2/25/2014 4:30 PM, Bill McCormick wrote:
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;
}
Revision:
On Tue, 25 Feb 2014 16:30:35 -0600
Bill McCormick wpmccorm...@gmail.com wrote:
I want to check if each list item is numeric and 0 but less than
$max.
See `perldoc Scalar::Util` and search for looks_like_number().
http://perldoc.perl.org/Scalar/Util.html
--
Don't stop where the ink does.
Bill McCormick wrote:
On 2/25/2014 4:30 PM, Bill McCormick wrote:
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
Data::Constraint is an alternative if you are thinking to add more different
types of constraints.
On 25 Feb 2014, at 22:36, Bill McCormick wpmccorm...@gmail.com wrote:
On 2/25/2014 4:30 PM, Bill McCormick wrote:
What would be the perl'ish way using map or some other sugar to check if
a list
On 2/25/2014 4:36 PM, Bill McCormick wrote:
On 2/25/2014 4:30 PM, Bill McCormick wrote:
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) {
On Feb 25, 2014, at 2:30 PM, Bill McCormick wrote:
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;
}
On 25/02/2014 23:46, Bill McCormick wrote:
On 2/25/2014 4:36 PM, Bill McCormick wrote:
On 2/25/2014 4:30 PM, Bill McCormick wrote:
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 =