Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^10: Pointers and References (updated)

by AnomalousMonk (Archbishop)
on Nov 25, 2020 at 20:55 UTC ( [id://11124227]=note: print w/replies, xml ) Need Help??


in reply to Re^9: Pointers and References
in thread Pointers and References

So $x = 42 is as useful as 1 = 42

I don't understand this statement. I can see where an expression like $x = 42 might be useful, but 1 = 42 can't possibly be useful because it won't compile.

Update: Or do you mean "if $x is aliased to a literal value (e.g., 1), $x = 42 is equivalent to 1 = 42"? (Update: And specifically WRT to the for-loop here? I didn't look back far enough. :)


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^11: Pointers and References (updated)
by LanX (Saint) on Nov 25, 2020 at 21:21 UTC
    > And specifically WRT to the for-loop here?

    yes, sorry I'm getting lazy these days.

    I have the feeling I'm heavily repeating myself over and over.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-24 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found