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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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

Veteran / Moderator

Nov 12, 2013, 11:21 AM

Views: 2824
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.

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