Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: regular xpression stuff

by screamingeagle (Curate)
on Jan 21, 2002 at 04:30 UTC ( #140272=note: print w/ replies, xml ) Need Help??


in reply to Re: regular xpression stuff
in thread regular xpression stuff

shouldnt

if ( join '', sort split(//, $word) eq join '', sort split(//, $to_be_matched ) ) {
be
if ( join('', sort split(//, $word)) eq join('', sort split(//, $to_be +_matched)) ) {
(extra parenthesis added )

After adding the parenthesis , i get "Success" (i.e. "bat" = "tab" based on your example), without them the result is "Failure"


Comment on Re: Re: regular xpression stuff
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (18)
As of 2015-07-28 17:03 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 (258 votes), past polls