Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: delete n elements of an array

by karlgoethebier (Curate)
on Nov 26, 2012 at 08:52 UTC ( #1005593=note: print w/ replies, xml ) Need Help??


in reply to delete n elements of an array

A variation:

#!c:/perl/bin/perl.exe use autobox::Core; use strict; use warnings; my $list = 1->to(20); $list->join(" ")->say; $list = $list->tail(5); $list->join(" ")->say; __END__ >tail.pl 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 16 17 18 19 20
autobox::Core

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»


Comment on Re: delete n elements of an array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-09-30 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (377 votes), past polls