Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by aaron_baugher (Curate)
on Oct 19, 2012 at 19:47 UTC ( [id://1000027]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use Modern::Perl;
    ...
    map { push @{($_ % 2 ? \@o : \@e)}, $_ } @n;
    
    say for @e;
    
  2. or download this
    #!/usr/bin/env perl
    use Modern::Perl;
    ...
    my @e = splice @o, 0, @o/2, ();
    
    say for @e;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-16 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found