Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Taken out of Context

by chipmunk (Parson)
on May 24, 2001 at 00:52 UTC ( [id://82727]=note: print w/replies, xml ) Need Help??


in reply to Taken out of Context

When I say *a = *b; in what context is *b being evaluated?
Well, the left-hand side of the assignment is a glob, so it must be that *b is evaluated in glob context! :)

But, really, I'm not sure I understand the point of this question. *b is *b whether its in list context or scalar context.

What is it that you're really asking?

Replies are listed 'Best First'.
Re: Re: Taken out of Context
by Petruchio (Vicar) on May 24, 2001 at 01:45 UTC
    Well, the left-hand side of the assignment is a glob, so it must be that *b is evaluated in glob context!

    That is, in all seriousness, precisely what I'm suggesting.

    *b is *b whether its in list context or scalar context.

    Correct. But *b is not \*b in list context or scalar context, or any other named context I can find. And yet they are the same in statements like *a = *b; and *a = \*b; Hence, I am suggesting that this constitutes an example of a distinct context, unlike the others.

    In short, I am asking for criticism of this theory.

    I am also trying to see what interest there is in this sort of approach to thinking about Perl; I've been doing a lot of it lately, and it's been quite interesting and educational. We customarily look at Perl as a tool, for the purpose of accomplishing our objectives with it. While this, of course, interests me greatly, I fear it can be a limiting perspective; I also wonder whether the models we're using to describe Perl have unsatisfactory limitations.

    One monk privately said in jest, "it's all too theoretical." I'm afraid many people will view such discussions that way in earnest. Nonetheless, this sort of thing seems significant to me.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found