freelanceprogrammers.org Forum Index » Perl

Problem making global hash


View user's profile Post To page top
Ubercat Posted: Thu Feb 28, 2002 12:58 am


Joined: 28 Feb 2002

Posts: 5
Problem making global hash
Hi there.<br><br>I`m trying to make a global hash
in a use strict Perl program for a school
assignment, and I declared a hash outside of any
blocks...<br><br>my %names<br><br>I have declared several global
arrays, but the global hash isn`t working out as well. I
keep getting "requires explicit package" errors when
the program has to use the $names{key} form. How dfo
I get around this so that the hash reference is
also recognized by the program?
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help