in reply to Re: CPAN doesn't understand continents
in thread CPAN doesn't understand continents
What version of CPAN/Perl do you have? (The code shown above belongs to what ships with Perl 5.12.2 — older versions had rather different code...)
Update: just checked that the CPAN which shipped with Perl 5.10.1 (v1.9402) looked very much the same, so yours must be older. For example, with Perl 5.8.8, the respective code read just:
@nums = split (' ', $num); my $i = scalar @$items; (warn "invalid items entered, try again\n"), next if grep (/\D/ || $_ < 1 || $_ > $i, @nums);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CPAN doesn't understand continents
by mochaman69 (Initiate) on Jan 20, 2011 at 23:02 UTC | |
by Anonyrnous Monk (Hermit) on Jan 21, 2011 at 00:21 UTC |