I only did that because that's how Jaspersan called the function. Personally, i hate prefixing function calls with the ampersand unless i am taking a reference to them, as you can probably tell from the rest of the code i posted.
However, tye has chastised me for this, and i understand why - because it distinguishes your functions from Perl's internal functions. Parens are not enough:
print "Hello World!\n"; print("Hello World!\n"); &print("Hello World?\n"); sub print { print "yo!\n"; }
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 reply to (jeffa) 5Re: Arrays
by jeffa
in thread How do I reset an array?
by Jaspersan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |