Hi there

I want to extract some word after space from some string.
Somebody from the mailing list had given me above
command.

suppose I wanto extract 8th word...

#suppose $abc  has the string;
$abc=split[/\s+/]->[8];   #somebody told me like this.

but it doesnt work. if i use some array in the split function like:-

@array=split(/\s+/,$abc);
print $array[8];

this way it works. But I dont want to use array. Its newbie question actually.

pls help.

Thanks
-Dhiraj
 


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

Reply via email to