Please bottom post, and group reply so that everyone can help and be helped, and to prevent accidental ignoring of your post.
> > Hello wiggins, > > Thanks, > > My requirement is i have two arrays @element and @size that i have got by splitting. > Probably you should adjust the code at the 'split' time in anticipation of your future needs, the need for two arrays that are then combined is an indication of a design flaw. Post more code to have that looked over... > I want to map first element of @element with first element of @size seperated with a colon . (in a loop how should i do it for all elements in arrays),i want this output in an array @mapped. > > > for eg: > file1 : 1 > file2 : 2 > file3 : 3 > > so if say print @c > > i should have output as follows > > file1 : 1 > file2 : 2 > file3 : 3 > > I am assuming the arrays are the same size... my @c; foreach my $index (0 .. $#element) { $c[$index] = "$element[$index] : $size[$index]"; } works? http://danconia.org <snip old posts> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>