Soham Das wrote:
a... How do I initialise an array of a definite size with zero. Say the C
equivalent of such a statement will be:
int a[125];
for(i=0;i<125;i++)
a[i]=0;
You easily can, but why would you?
It is often a sign of bad design.
b. Is it possible, to have dates as index? I am trying to parse and process data
corresponding to a list of "trades" I have made(financial trades) and want to
see, how my portfolio varies with time. So is it possible to do in such a way?
Just format them as a string: "yyyy-mm-dd"?
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/