in reply to Re: implicit split to @_ is deprecated
in thread implicit split to @_ is deprecated

It is a good idea but it won't work the way you have it. The problem is that with limit parameter, the last element contains the rest of the string. If there are more than four data fields, then the fourth element will contain all of them. Also, the parenthesis around the split are needed to force it into list context. Instead, this will work:
my $start = (split(/s\+/, $data[145], 5))[4];

Replies are listed 'Best First'.
Re: Re: Re: implicit split to @_ is deprecated
by CombatSquirrel (Hermit) on Aug 29, 2003 at 21:16 UTC
    Errr, OK, OBO error ;-) Stupid 0-indexed arrays
    Thanks
    CombatSquirrel.
    Update: Your code won't work either. Use array index 3 instead of 4 - you are getting the rest field as well.
    Entropy is the tendency of everything going to hell.