Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Ways to delete start of string

by ysth (Canon)
on May 25, 2008 at 06:13 UTC ( [id://688354]=note: print w/replies, xml ) Need Help??


in reply to Re: Ways to delete start of string
in thread Ways to delete start of string

Both the 4-arg substr (I find left-side a confusing term) and s/// avoid copying, so should be more or less constant. They do this by just adjusting the beginning pointer into the string buffer and noting the offset used in the slot usually used for integer value. This is called the OOK hack (OOK being the flag set to indicate the integer slot is storing an offset).

Replies are listed 'Best First'.
Re^3: Ways to delete start of string
by mwah (Hermit) on May 25, 2008 at 18:12 UTC
    This is called the OOK hack ...

    Thanks for hinting on this, after your explanation I can see the pattern now.

    I find left-side a confusing term

    I was under the impression that 'left hand side term' vs. 'right hand side ...' would be a terminus technicus here (?)

    Thanks & Regards

    mwa

      lvalue and rvalue would be less confusing to me.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-03-28 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found