in reply to Re: list vs array context: odd error message...
in thread list vs array context: odd error message...

thank you much,

As a question though, would there be a time when it would make sense to use split in scalar context (and thus avoid the @_?). Not as if i'm qualified to ask question's on perl's behavior, but if this is deprecated (as diagnostics says) is it going to be replaced by some other behavior?

jynx

UPDATE: please disregard this, i apparently wasn't fully reading the above post (but thanx again swiftone for pointing that out)

  • Comment on Re: Re: list vs array context: odd error message...

Replies are listed 'Best First'.
Re: Re: Re: list vs array context: odd error message...
by swiftone (Curate) on Dec 16, 2000 at 04:50 UTC
    1) I can't think of a time you'd use split in a scalar context. See chromatic's post about m//;

    2) The features of splitting to @_ was there to reduce temporary variables. It's deprecated because it encourages trampling on subroutine arguments.