in reply to implicit split to @_ is deprecated

This will return the fourth element of the split:

my $start = (split / /, $data[146])[3];

I think that you might not be doing what you expected here:

my $start=(split(/ /,$data[146]),3); # ^^

The last argument to split means that it will split to a maximum of three strings. If you are trying to get the fourth element, this won't help you.

perldoc -f split

</ajdelore>

Replies are listed 'Best First'.
Re: Re: implicit split to @_ is deprecated
by Anonymous Monk on Aug 29, 2003 at 17:09 UTC
    your right, however it is indeed the 4th element/column that I am looking at, so we are still on target. Thanks.