in reply to Problem with hash

It would help if you'd point out the line generating the warning. I think it's this one:

$statusList{$banco} = $statuss;

My guess is $banco is undef, probably because there's a blank line in santa1.txt.

Replies are listed 'Best First'.
Re^2: Problem with hash
by padawan_linuxero (Scribe) on Jun 03, 2008 at 17:30 UTC
    Yes what a moron I am
    that was the problem thank you it had a another line in the end of the text file

      You're probably already doing it this way but, just in case you're not: instead of just deleting the line, you might want to consider making the script more robust -- check that $banco and $statuss are defined before using them.

      Just a thought.

      --
      Wade