|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: How do I print a partial array?by dragonchild (Archbishop) |
| on Jun 13, 2001 at 17:54 UTC ( [id://88142]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If you already know what elements you want to print, then doing something like
print @b[0,4,6..8], "\n";
will print just those elements. This is called an array slice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||