On 3/21/07, Mathew Snyder <[EMAIL PROTECTED]> wrote:
snip
I'm under the impression that by assigning a single value to a hash it becomes
the key with the value being null.
snip

Perl will let you do it, but it is not a good idea and almost
certainly is not what you want to do.

snip
I did as you said and dereferenced each of those methods.  Now, instead of
getting "5" in the error, I'm getting "72".  These numbers correspond to user
IDs.  I don't know why it is telling me "Can't use string ("72") as a HASH ref
while "strict refs" in use at ./user_timesheet_new.pl line 27."
snip

Most likely because the methods you are using are not returning data
that should be stuffed into a hash in the way you are attempting.  I
would suggest you go back and reread your documentation instead of
just trying to make it work they way you are doing it now.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to