Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Help!!! How to find duplicates?

by jacques (Priest)
on Dec 05, 2009 at 00:52 UTC ( #811180=note: print w/replies, xml ) Need Help??

in reply to Help!!! How to find duplicates?

The problem here is in separating your function calls. I came up with a solution that split your text on commas but then I saw that certain function calls contain commas and that wouldn't work.

Try separating each function call with something other than a comma, like a special character. Then you can split that string on that character and grep out the duplicates.

Better yet, forgo putting the calls in a string and put them in an array and then grep that.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811180]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2018-06-21 09:38 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.