in reply to split giving warning

Because the split call returns a list, and as you ignore the returned list, it gets stuffed into @_, the default array.

This feature is deprecated, meaning that it will disappear someday, and the interpreter is informing you so that the code can be modified to run on future versions of Perl.

Replies are listed 'Best First'.
Re: Re: split giving warning
by allolex (Curate) on Mar 22, 2004 at 05:09 UTC

    In other words, do something like this:

    my @array = split /\s+/; $schds{ lc($array[0]) } = 1;

    --
    Allolex