in reply to deprecated split ??

Sure. You're using split in scalar context to implicitly split into @_ and that is deprecated as the message says. Just do this:
@models = map { (split /;\s*/)[1] } @models;
or if the inside of your map is really a little more complicated, perhaps you'd like to use a temporary array:
@models = map { my @t = split /;\s*/; ... $t[1]; } @models;

Replies are listed 'Best First'.
Re: Re: deprecated split ??
by etcshadow (Priest) on May 28, 2004 at 03:13 UTC
    Since when the heck has the return value of the code inside of a map been scalar context?
    [me@host]$ perl -le 'sub x {print "yup" if wantarray} @y = map { x() } + (1,2);' yup yup [me@host]$
    Oops. I saw the darn semicolon a half-second after submitting. D'oh.
    ------------ :Wq Not an editor command: Wq