On 2/25/2014 7:07 PM, Jim Gibson wrote:
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)
Hi all,
On Tue, 25 Feb 2014 17:07:00 -0800
Jim Gibson wrote:
>
> 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(1
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 = qq(123,4
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 $_ > $
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) {
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 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 so
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) {
>>d
On Tue, 25 Feb 2014 16:30:35 -0600
Bill McCormick 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.
Shawn
--
To
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:
fo