Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: the end of a word

by ichimunki (Priest)
on Jul 22, 2002 at 22:57 UTC ( #184277=note: print w/ replies, xml ) Need Help??


in reply to the end of a word

perldoc -f chop

for when you know you don't want the last letter

perldoc -f tr

for when you want to get rid of certain characters no matter where they appear, example: $directory =~ tr/\]//

perldoc perlre

for when you need to do some fancy reg ex substitution stuff to get at real specific stuff like remove a specific character at the end of a string, example: $directory =~ s/\]$//


Comment on Re: the end of a word

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2015-07-05 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls