Hashes and arrays are dynamic by default in Perl.  The initialization
snippet you posted below may not be needed.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Nicol
Sent: Monday, March 28, 2005 1:10 PM
To: Daniel Wilson
Cc: [email protected]
Subject: Re: Dynamic Hash Array Declare?

 don't understand the question.  the code example is a lot of array
references.

Push, pop, splice all work on anonymous arrays, if that helps


On Mon, 28 Mar 2005 12:59:24 -0500, Daniel Wilson <[EMAIL PROTECTED]>
wrote:
>  Hello Perl World!
> 
>  I need a little help..
> 
>  I currently have the followings (hard coded) definition in one of my
perl
> program that I am currently upgrading.
> 
>  # A five by five Hash Array
>  my @GlobalArrayRef;
>  $GlobalArrayRef[0] = [ [0,0,0,0,0], [0,0,0,0,0], [0,0,0,0,0],
[0,0,0,0,0],
> [0,0,0,0,0] ];
> 
>  I need to change this to where I can set the hash array size
dynamically
> (during runtime) and not hard coded to a specific size. Any Ideas?
> 
>  Thanks
>  
> 
>  Daniel Wilson
> 
-- 
David L Nicol
"You don't know how to maintain a station wagon either!"
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to