Or is it purely personal preference?
It is. I start using named arguments when a sub has more than two.
If does require that your sub names are logical, though.
is already self-documenting, whilereadfile('foo.txt');
is redundant.readfile( file => 'foo.txt' );
U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk
In reply to Re: Accessing Subroutine Arguments
by Juerd
in thread Accessing Subroutine Arguments
by vek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |