Just another Perl shrine | |
PerlMonks |
(jeffa) Re: splice, explanation please?by jeffa (Bishop) |
on Nov 16, 2002 at 17:01 UTC ( [id://213422]=note: print w/replies, xml ) | Need Help?? |
splice is great. Here is how you can remove a whole
column from a two-dimensional array:
The end result is the middle column of @table is removed and assigned to @col. jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom
|
|