@fo=@foo[2,5];
    ^

-----Original Message-----
From: Santosh M Hulkund [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 9:02 AM
To: [EMAIL PROTECTED]
Subject: 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