CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [zapzap] Regex Problem: Edit Log



FishMonger
Veteran / Moderator

Nov 12, 2013, 11:21 AM


Views: 2557
Re: [zapzap] Regex Problem

Ok, I'll take your word that it's not a homework assignment.

After working in perl forums for a number of years you can get a pretty good (but not always accurate) feel by the way the question is worded and/or by the code about whether or not it's a homework assignment. Yours gave me that impression.

You're jumping through too many hoops to get the job done.


Code
sub change { 
$_[0] =~ s/([bcdfghjk-np-tv-z])/$1o$1/g;
return $_[0];
}



(This post was edited by FishMonger on Nov 12, 2013, 11:26 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Nov 12, 2013, 11:26 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives