There's more than one way to do things | |
PerlMonks |
Re^2: Calling module function from within a blessed moduleby Bod (Parson) |
on Jan 03, 2021 at 11:57 UTC ( [id://11126193]=note: print w/replies, xml ) | Need Help?? |
Never, ever, ever do this. The one argument version of bless really should issue a warning. Actually, in real code I do not generally use the one argument version. I created that as a minimal example to support the question. Having said that, I don't know why I avoid the single argument version. It is because I have copied other code that works and looks like the author knows what they are doing which is not exactly the most rigorous methodology for learning...
In Section
Seekers of Perl Wisdom
|
|