Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    local $"=', ';
    print "The even numbers are @{$number->[0]}\n";
    print "while the odd numbers are @{$number->[1]}.\n";
    
  2. or download this
    > perl EvenOdd.pl 1 2 -nogo 3.4 3 4 5 -4
    The even numbers are 2, 4, -4
    while the odd numbers are 1, 3, 5.