Re: Calculate MD5 checksum of a remote and local file using FTP

2014-02-25 Thread Shaji Kalidasan
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

check list if values meet criteria

2014-02-25 Thread Bill McCormick
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

Re: check list if values meet criteria

2014-02-25 Thread Bill McCormick
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:

Re: check list if values meet criteria

2014-02-25 Thread Shawn H Corey
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.

Re: check list if values meet criteria

2014-02-25 Thread Ron Bergin
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

Re: check list if values meet criteria

2014-02-25 Thread Jing Yu
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

Re: check list if values meet criteria

2014-02-25 Thread Bill McCormick
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) {

Re: check list if values meet criteria

2014-02-25 Thread Jim Gibson
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; }

Re: check list if values meet criteria

2014-02-25 Thread Rob Dixon
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 =