List::Util
摘要:
use List::Util;use List::Util qw(first max maxstr min minstr reduce shuffle sum);sub test { my @numbers = (1, 2, 3, 4, 5, 6, 7); # Get first element my $first_number = first { defined($_) } @numbers; print $first_number, "\n"; # Get max element my $max_number = max @numbers; pri... 阅读全文
posted @ 2011-11-28 16:52 perlman 阅读(1038) 评论(0) 推荐(0) 编辑