On Mon, Mar 10, 2008 at 1:37 PM, igotux igotux <[EMAIL PROTECTED]> wrote:
>I tried
>  split(/\s+/,$var)[1]  which is not working as i expected.

You may be moving from python,:)
In perl you should say,

(split /\s+/,$var)[1];

because split /\s+/$var returns a list, use () to enclose the list's scope.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to