Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: When aliasing sub arguments to @_ elements, PADTMP, READONLY flags are copied inconsistently

by ikegami (Pope)
on Jan 20, 2020 at 16:16 UTC ( #11111637=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Concise,-exec -MDevel::Peek -we'Dump 1; sub foo{Dump $_[0];
    +$_[0]=1} foo(1)'
    1  <0> enter
    ...
    9  <1> entersub vKS
    a  <@> leave[1 ref] vKP/REFC
    -e syntax OK
    
  2. or download this
    $ perl -MO=Concise,-exec -MDevel::Peek -we'Dump 1+1; sub foo{Dump $_[0
    +];$_[0]=1} foo(1+1)'
    1  <0> enter
    ...
    9  <1> entersub vKS
    a  <@> leave[1 ref] vKP/REFC
    -e syntax OK
    
  3. or download this
    $ perl -MDevel::Peek -e'Dump(${\1})'
    SV = IV(0x8549e4010) at 0x8549e4020
    ...
      REFCNT = 1
      FLAGS = (IOK,pIOK)
      IV = 2
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-12-04 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (30 votes). Check out past polls.

    Notices?