in reply to What causes HASH to print?

Read the docs on the subject of references. whats happening is you're using curly braces, thus assigning a (scalar) anonymous hash. likely what you MEANT to do was assign an actual hash:
# note the parentheses for a list, rather than curly braces for an ano +nymous structure %SA_DATA_LOCK_DOWN = ( 'SECALERT_ALERTS_ID'=>0, 'SECALERT_NUM'=>0, 'TECH_SPEC_ID'=>0, 'OS_APP_NAME'=>0, )
Update: Fletch makes a good point. references and scalar/list context are both complex and difficult to fully explain, as I perpetually prove :o

__________
Systems development is like banging your head against a wall...
It's usually very painful, but if you're persistent, you'll get through it.

Replies are listed 'Best First'.
Re^2: What causes HASH to print?
by Fletch (Bishop) on Feb 27, 2007 at 16:12 UTC

    That's not assigning "an actual hash", that's assigning a LIST to a hash which is taken as a set of key/value pairs.</pedant>