Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^9: Shouldn't references be readonly? (updated)

by chromatic (Archbishop)
on Aug 06, 2020 at 00:41 UTC ( #11120384=note: print w/replies, xml ) Need Help??


in reply to Re^8: Shouldn't references be readonly? (updated)
in thread Shouldn't LITERAL references be readonly? (updated)

That... is actually a pretty good example.

Run it through Deparse though, and:

use strict; use warnings; use Data::Dump ('pp', 'dd'); use constant ('a', 1); $\ = "\n"; print \1; print \1; print \1; print \1;

Replies are listed 'Best First'.
Re^10: Shouldn't references be readonly? (updated)
by LanX (Sage) on Aug 06, 2020 at 01:35 UTC
    > Run it through Deparse though,

    And what do you think that proves?

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

      The same thing that you do: there's a subtlety of implementation that Deparse doesn't catch.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2021-12-01 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (14 votes). Check out past polls.

    Notices?