On Tue, 31 Jul 2001, Santosh M Hulkund wrote:
> 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]
@fo = @foo[2,5];
(note that array slices use the @ operator)
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I don't do it for the money.
-- Donald Trump, Art of the Deal
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]