in reply to Re^3: Data Persistence
in thread Data Persistence
I am mind blown right now.
It is going to sound retarded, but I just realized or remembered that perl was object oriented
I thought most singleton patterns in perl used a flock to ensure there was only one instance of a script running, but we can actually create new objects and call their functions. Also, according to my testings, it seems like the code within a package is always executed after using the 'use' statement which was not what I expected
Sorry if I was a little in doubt, I only code programs in perl once a year and I guess that what I had to do was never quite complex
Thank you very much for the help, a lots of new doors just opened to me ahah. I still can't believe I had tried to understand some the modules found on CPAN and did not recall it was using objects, I feel so ashamed lol. I probably just noticed it and went back to my regular implementation without giving it too much thoughts since it was not required at all for what I had to do. Again, thank you for making me realize I was missing one of the most basic feature of the language
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Data Persistence
by Laurent_R (Canon) on Nov 20, 2014 at 23:27 UTC |