Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Anonymous Monk
on Sep 05, 2013 at 02:49 UTC ( [id://1052475]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1052475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-20 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found