Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: searching problem

by Lotus1 (Chaplain)
on Jan 18, 2013 at 22:27 UTC ( #1014146=note: print w/ replies, xml ) Need Help??


in reply to Re: searching problem
in thread searching problem

my($string) = q(mamy dady bal foo bar);

Your wordlist doesn't contain anything that will match what the OP requested.

my(@strings_list) = scalar reverse $revwords;

This will put all the words into the first element of @strings_list so there is no need to use any(). Would have been much simpler to just reverse the original string and then split it into an array.

my $rev = reverse $string; my @strings = split ' ', $rev; print join ',',@strings;
sub { /^ymam*/}, @strings_list,

^ymam* will match 0 or more 'm's after yma which is not going to work. The * is not needed here.


Comment on Re^2: searching problem
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-06 06:25 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 (70 votes), past polls