Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Setting end position for the regexp engine using LVALUE

by ikegami (Pope)
on Sep 19, 2013 at 23:31 UTC ( #1054921=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    substr($_, 3, 2) = 'foo';
    
  2. or download this
    substr($_, 3, 2, 'foo');
    
  3. or download this
    my $ref = \substr($_, 3, 2);
    $$ref = 'foo';
    
  4. or download this
    >perl -MDevel::Peek -e"$_ = 'abcdef'; my $ref = \substr($_, 3, 2); Dum
    +p($$ref);"
    SV = PVLV(0x4d3d24) at 0x2cb29c      <--- PVLV
    ...
        PV = 0x2cab94 "abcdef"\0
        CUR = 6
        LEN = 12
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-08-01 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (51 votes), past polls