>  @myarray = split ' ', $fContent[$i];


Is this special form of split documented somewhere?  Does it still split on
all whitespace?

My problem is that the string I'm splitting may or may not have leading
whitespace...

TIA.

- B

__________________


Bryan R Harris wrote:
>
> Is it possible to return elements 2 (index 1) thru end of the results of
a
> split?
>
>   @myarray = (split(/\s+/,$fContent[$i]))[1..-1];
>
> seems right, but doesn't work...

If you are doing this because split/\s+/ returns an empty element in
$myarray[0] you should use the special form of split

  @myarray = split ' ', $fContent[$i];


John
--
use Perl;
program
fulfillment

--
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