Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
General: Perl Programming: Re: [Andy] chop last letter/alphabet from a string: Edit Log
Here is the list of edits for this post
Mar 31, 2011, 2:09 PM
el noe
User
(435 posts)
Mar 31, 2011, 2:09 PM
Views: 6539
Re: [Andy] chop last letter/alphabet from a string
just 4 fun
Code:
$term = 'cars';
if ($term =~ /^(.*)s$/) {
$term = $1;
}
Regards
n || i || k || o
Last
edited
by:
el noe
: Mar 31, 2011, 2:10 PM
Edit Log:
Post edited by
el noe
Post edited by
el noe
(User) on Mar 31, 2011, 2:10 PM