in reply to Can't use an undefined value as a HASH reference

ref->{'employee_id'} is missing the '$' on line 1528. Change 'ref' to '$ref'.

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Replies are listed 'Best First'.
Re: Re: Can't use an undefined value as a HASH reference
by Anonymous Monk on Dec 19, 2002 at 21:06 UTC
    I appreciate the response thank you. However that was just a comment. The script dies when I test $ref->{'employee_id'} with $user_id. The script also dies when I set a scalar to equal $ref->{'employee_id'} and then test that scalar with $user_id. That is why I added the senseless if clauses to see if the script would die. Thanks joe budd joebudd@iserv.net