Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Subroutine Even/Odd

by tobyink (Abbot)
on Oct 04, 2012 at 07:36 UTC ( #997197=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if($number%2==0)
    {
       $number = $_;
    }
    print "$number";
    
  2. or download this
    use 5.010;
    use List::MoreUtils qw(part);
    ...
    
    say "Odd numbers: ";
    say $_ for @$odds;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997197]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2016-06-30 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.