Re: Classes, hashes, objects and references

2003-11-11 Thread Jenda Krynicky
From: Rob Richardson <[EMAIL PROTECTED]> > The line of code that is supposed to add the new User object to the > 'users' hash of the UserList object is: > > $self->{'users'}->{$loginName} = $user; #<== This is line 47 > > The error message is: > "Can't use string ("interrobang") as a HASH ref wh

Re: Classes, hashes, objects and references

2003-11-11 Thread drieux
On Tuesday, Nov 11, 2003, at 10:23 US/Pacific, Rob Richardson wrote: [..] The error message is: "Can't use string ("interrobang") as a HASH ref while "strict refs" in use at UserList.pm line 47, line 1." "Interrobang" is the login name of the only user in the data file I am testing this script aga

Re: Classes, hashes, objects and references

2003-11-11 Thread Jeff 'japhy' Pinyan
On Nov 11, Rob Richardson said: >$self->{'users'}->{$loginName} = $user; #<== This is line 47 > >"Can't use string ("interrobang") as a HASH ref while "strict refs" in >use at UserList.pm line 47, line 1." >"Interrobang" is the login name of the only user in the data file I am >testing this scr

Classes, hashes, objects and references

2003-11-11 Thread Rob Richardson
Greetings! I am trying to build a class that has a hash of objects. Specifically, the class is UserList, a list of users of a system. Users are represented by instances of the User class. Each user has a login name, a first name, a last name, a telephone number and an E-mail address. The Use