in reply to building a hash from a database
You've used fetchrow_hashref but you're treating the value you get from it as if it were a hash rather than a hashref. Use $rowdata->{id} instead of $rowdata{id}. (Use -> everywhere you mention $rowdata) use strict would have caught this for you.
|
|---|