Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: New student, can we write this program in perl...

by clueless newbie (Chaplain)
on Oct 19, 2012 at 18:17 UTC ( #1000006=note: print w/replies, xml ) Need Help??

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.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000006]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-02-19 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (257 votes). Check out past polls.

    Notices?