Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: hash name as a variable?

by Ronnie (Scribe)
on Sep 15, 2004 at 15:48 UTC ( [id://391219]=note: print w/replies, xml ) Need Help??


in reply to Re: hash name as a variable?
in thread hash name as a variable?

I've looked & can see no error. There are 2 hash tables for each instance. ISWTEST & ISWTEST_PATH, ISWLIVE, ISWLIVE_PATH etc. Have I missed an obvious typo? Cheers, Ronnie

Replies are listed 'Best First'.
Re^3: hash name as a variable?
by hmerrill (Friar) on Sep 15, 2004 at 16:52 UTC
    My mistake - you didn't mis-spell anything.

    Did you get any output besides the error? And which line is line 224?

      Hi, Line 224 is the while (($key,$value ........ & the script output the SOR message, the "Processing ISWTEST message & the EOR message if I remove the use strict. The while ($key.... is not actioned, I put a toytown display in their and it never appeared. If I leave the use strict in I get

      <***** SOR ACC_ORACLE_ENV *****>

      Processing ISWTEST Environment.
      Can't use string ("ISWTEST") as a HASH ref while "strict refs" in use at xxrc_new_profile.pl line 224.

      It would seem that this is the piece of offending code but I still can't see why -
      while (($key,$value) = each %$DB_name) { print "\tKey :: $key\n" ; print "\tValue :: $value\n" ; }
      Cheers, Ronnie

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391219]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2024-04-23 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found