Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: [substr] anomaly or mine?

by sauoq (Abbot)
on Aug 19, 2002 at 23:53 UTC ( [id://191346]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
                 An alternative to using substr() as an lvalue is to
    ...
                 This allows you to replace parts of the EXPR and
                 return what was there before in one operation, just
                 as you can with splice().
    
  2. or download this
    $ perl -le '$,="|";$s="foobar"; print substr($s,-2,2)="z",substr($s,-2
    +,2)'
    z|bz
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found