in reply to What's this line means in HTTP::headers?

What "the context" refers here

"The context" is a fundamental feature of the language, like an array in scalar returns the size of an array

See also Tutorials: Context in Perl: Context tutorial, "List" Is a Four-Letter Word, Easy Reference for Contexts

  • Comment on Re: What's this line means in HTTP::headers? ("the context")

Replies are listed 'Best First'.
Re^2: What's this line means in HTTP::headers? ("the context")
by anaconda_wly (Scribe) on Sep 05, 2013 at 03:00 UTC

    Also I know the context meaning in some cases saying

    my $var = @array

    But here in specific case:

    return @old if wantarray;
    Does that mean if wantarray is always true? since @old is always an array?
      No. wantarray has nothing to do with @old, it has to do with how sub header is called, in what context.
Re^2: What's this line means in HTTP::headers? ("the context")
by anaconda_wly (Scribe) on Sep 05, 2013 at 02:55 UTC
    Yes, I know Auto-increment sign but just didn't understand the outcome here.