That also works but you are incurring the expense of creating and invoking the subroutine for each and every element of the array rather than just once. This might have an impact on performance.
Cheers,
JohnGG
In reply to Re^3: TIMTOWTDI - printing an array
by johngg
in thread TIMTOWTDI - printing an array
by cheekuperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |