I'd like to get some opinions from you guys about this piece of code I found:
sub to_xml { return shift->to_html(@_); }
It's short, elegant, and gets the job done. But is this something I should try to avoid emulating in my own code? Will it confuse people, and is it just bad practice in general to rely on the order of evaluations?
Thanks.
In reply to One line accessor method style. by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |