SBCSI) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 5:54 PM
To: 'Arnold, Craig'; '[EMAIL PROTECTED]';
[EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Subject: RE: [Perl-unix-users] Help on array
Thanx to Arnold, Dave and Wilson for all your help. Your inputs were reall
Thanx to Arnold, Dave and Wilson for all your help. Your inputs were really
great. All the suggestions really worked well.
One final question
when I had used the command
$#array2 = -1 ;
perl supposed to truncate all the elements in the array to nothing. But it
is not happening. It is still sto
For seperating your array elements with a comma, use the join command.
push ( @ar2 ,"123\t" ,join("," ,@ar1 ));
If @ar1 is a list of letter groups, the following line will push into @ar2
the number + TAB followed by however many letter groups seperated by a
comma.
printing @ar2 results in:
12
AITHA, BHEEMSEN (SBCSI) wrote:
> Hi list,
>
> I would like to create an array in the following format:
>
>
> 123 abc,xyz,pqr
> 234 xyz
> 456 wer,tre
> ---
> ---
>
> I want to use a command like the following
>
> push @first_array,from second_array>;
>
> where the_number = values i