|
|
| more useful options | |
| PerlMonks |
Re^3: Self creating OO Module field accessors...by demerphq (Chancellor) |
| on Jan 13, 2006 at 13:07 UTC ( #522970=note: print w/ replies, xml ) | Need Help?? |
|
IMO There is a big advantage to the first style however: it actually defines the subs in such a way that you don't get weird error messages about stuff happening in an anon sub. Likewise you can set breakpoints in the debugger and stuff with the former but with the latter its not so easy. There are ways around this, but they aren't straight-forward.
--- $world=~s/war/peace/g
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||