chintu has asked for the wisdom of the Perl Monks concerning the following question:
as$string = " How are you?";
i tried using split function.print "How"; print "are you?";
It is not working. Can anyone help me? Thanks Chintu.$firstword = split(/^\s+/, $string); print $firstword;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to split to the sentence by first whitespace as delimiter?
by japhy (Canon) on Mar 28, 2001 at 20:06 UTC | |
|
Re: How to split to the sentence by first whitespace as delimiter?
by I0 (Priest) on Mar 28, 2001 at 08:50 UTC | |
|
Re: How to split to the sentence by first whitespace as delimiter?
by I0 (Priest) on Mar 28, 2001 at 08:45 UTC |