Rp C987342 wrote:

> In java, I would be careful in choosing a vector vs arraylist.
> In c/...,  arrays have fixed length. In perl, when I say
> my @arr = <STDIN>;
> I do not (or cannot?) specify the length of the array even when

this's somehow true. you do not control how big your array is internally. 
even if you say stuff like:

my @array;
@array[0..14] = (0..14);

you do not neccessary get an array with 14 element internally. Perl always 
allocates the size of an array to be power of 2. Programmers coming from 
the C world usually wants to squeeze very bit of performance(memory) out of 
Perl by trying to do things like that. This's perfectly ok but i suggest 
that you don't have to worry about things like that too much. if you 
decided to code something in Perl, go with whatever Perl can provide. have 
fun while programming in Perl. :-)

david

> I know it has only 15 elements.
> 
> So, what I want is about such issues in Perl, if any, that I have to
> be aware of when writing programs in perl.
> 
> thanks.
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to