in reply to Adding command line arguments.

print grep {$_ % 2 == 0} @ARGV;
-- Joost downtime n. The period during which a system is error-free and immune from user input.

Replies are listed 'Best First'.
Re: Re: Adding command line arguments.
by robobunny (Friar) on Jun 06, 2002 at 14:11 UTC
    maybe
    print join("\n", grep {$_ % 2 == 0} @ARGV), "\n";
    if it needs to be human readable :)
Re: Re: Adding command line arguments.
by Anonymous Monk on Jun 06, 2002 at 14:21 UTC
    Thanks for all answers, you guys are quick!