in reply to Re^2: Array storage issue
in thread Array storage issue
... when I first started perl, whenever I tried to use "my" my program wouldn't work.
It would have been very useful to have explored the reasons why your use of lexical variables wouldn't work. It's not too late to begin!
... packages ... just [seem] more stable.
Package data is global data. Global data is, IMHO, always problematic.
The story goes that during one of the Pearl Harbor attacks on December 7, 1941, General Walter Short, commander of the Army forces in Pearl, was struck in the chest by a spent 50-caliber machinegun round and knocked to the ground. The bullet's impact didn't even break the skin, but when someone picked it up and showed it to Short, he said "It would have been better if it had killed me."
When the day comes (and come it will if it has not already) that you are knocked on your ass by a chunk of global data at the end of a long trajectory from its point of origin, you may have some of the same feelings.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Array storage issue
by LanX (Saint) on Apr 06, 2014 at 23:09 UTC | |
by AnomalousMonk (Archbishop) on Apr 06, 2014 at 23:18 UTC | |
by Anonymous Monk on Apr 06, 2014 at 23:26 UTC | |
by AnomalousMonk (Archbishop) on Apr 06, 2014 at 23:47 UTC | |
by LanX (Saint) on Apr 06, 2014 at 23:52 UTC |