Try this:

@fo = @foo[2,5];

al

-----Urspr�ngliche Nachricht-----
Von: Santosh M Hulkund [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 16:02
An: [EMAIL PROTECTED]
Betreff: How do I extract 2 elements....



 Hi,
        I am new to perl, this is question is very silly and stupid. So,
Please spare me.................

        Program.
        #!/usr/bin/perl -w
        @foo = qw ( s a n t o s h )

         Now I want to store the 2nd and 5th element ( i.e. n and s ) from
the array foo to array fo. How do i do it ?????

        @fo = $foo[ what do i type here]

 With Regards,
 Santosh M Hulkund



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



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

Reply via email to