Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Array storage issue

by AnomalousMonk (Canon)
on Apr 06, 2014 at 22:52 UTC ( #1081356=note: print w/replies, xml ) Need Help??


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 (Chancellor) on Apr 06, 2014 at 23:09 UTC
    I somehow expected a metaphor about Japanese bullets being global, while American generals wear lexical uniforms...

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      ... Japanese bullets ...

      Actually, if the story is true (and it may be too good to be true), a 50-cal bullet would most likely have come from a U.S. AA machine-gun. (I'm not sure that any of the Japanese planes at Pearl were armed with other than 30-cal guns.) This just emphasizes the truism that such injuries are likely to be self-inflicted.

        he's talking about being hit by brass shell not by lead bullet

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081356]
help
Chatterbox?
[erix]: oh well, it's holy week, right? Thick-skin week. I just read that in the Philippines, some RCs practice self-crucifixion. Tough cookies I'd like to see
[LanX]: already?
[erix]: I don't know really. I thought so.
[LanX]: April 16th
[erix]: ah no, 16 april. some time to go yet :)
[LanX]: I hate resurrection ... my back aches
erix practices self-crucifixion but keeps getting get stuck at the one loose hand stage...
LanX has seen this in action ... pope should claim copyright infringement
[LanX]: dunno how to link image search

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2017-03-23 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.