Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Your code has a bug. Specifically, mine does not allow a reference to be assigned to name. Your code does. A major point indeed. I'll abuse it for my own purpose, though: it's the unreadability that made me overlook it! :) But the fix is simple and doesn't hurt readability much. You are right that accessor methods are error prone in multiple ways. Fortunately, simple lvalue accessor methods don't have this problem.
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' } In reply to Re^3: Use method/function signatures with Perl
by Juerd
|
|