OK.. maybe I'm trying to be too fancy.

the package is:
###################
package Names;
@Countries("Ireland","Wales");
%Lord{Ireland}=("Bob","Tom");
%Lord{Wales}=("Ted","Ned");

return 1;
#################
the program is:
###################
foreach $Country(@Names::Countries)
{
    print qq|$Names::$Lord{$Country}|;
}
###################

I have tried several variation on this.. can't get it to work.
I need it to print the array of Ireland and then Wales.

I'll keep working on it.. help is always welcome
Thanks
Lou



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


Reply via email to