Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Replace the last letter

by !1 (Hermit)
on Oct 07, 2004 at 17:10 UTC ( #397375=note: print w/replies, xml ) Need Help??


in reply to Replace the last letter

substr($variable, rindex($variable,$tofind), length($tofind), $replace +ment) if rindex($variable,$tofind) > -1;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2021-07-30 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?