in reply to problem with variable values

As you can tell their is a copying error it should be
if (index $line, "password" == 0) { %PasswordLine=$line; }

Replies are listed 'Best First'.
Re: Re: problem with variable values
by Anonymous Monk on Jun 13, 2001 at 07:27 UTC

    the file it is reading from looks like this
    name: jeff
    password: jeff
    minatt: 2
    maxatt: 15
    exp: 0
    gold: 10