> Hello,
>   I have a sentince I would like to split on a word and keep 
> everything right of the "split word". I cant seem to get this 
> to work. Could over me some advice.

Split returns in list context so ::

@stuff = split(/word/, $sentence);

Or

($left,$right) = split(/word/, $sentence);

Also split uses a regex not a literal to split so whatever you have in the // needs to 
be a regex

So split(/word/, ...
Splits it on those four letters next to each other

Or 
        split(/\s/, ...
Splits it at every white space character
        split(/\d/, ...

Splits on every digit ....

Etc

Hoep that helps!!
DMuey


> 
> Thanks,
> -- 
> jd
> [EMAIL PROTECTED]
> 
> Bad spellers of the world untie!
> 
> "I can't tell if I have worked all my life or 
> if I have never worked a single day of my life"
>                       Miguel de Icaza
> 
> 
> -- 
> 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