in reply to Adding command line arguments.

How about ...

my @pages = grep {$_ % 2 == 0} @ARGV;

Or are you asking something else?

--
Steve Marvell