Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 musing on the Monastery: (11)
As of 2014-10-20 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls