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: General Discussions: General Questions:
perl script help needed

 



achiganmi
New User

Oct 26, 2007, 12:26 PM

Post #1 of 2 (4405 views)
perl script help needed Can't Post

hi all...
i need to write a perl program which does the following:

it connects to the database and retrieves the rows from a table, which i am able to do.

For example, the table looks like this :
Name PID CID LID
a1 0 0 10
a1 0 0 20
a1 0 1 30
a2 0 2 40
a2 1 1 50
a3 0 1 10


so, here i need to check for duplicates and the rule is as folows:

eliminate duplicate rows which has the same CID, same PID and same name.
SO in the above example, i need to eliminate either row 1 or row 2. LID is NOT an issue here, i mean it does not matter if they are same or different.

I am storing all columns in separate arrays and then trying to sort based on columns. I just have an idea but I would like to have the perfect working code.

I will be grateful if some1 could provide me with one.
Thankyou.
Regards,
Abhilash

Code



      
    


KevinR
Veteran


Oct 26, 2007, 7:20 PM

Post #2 of 2 (4402 views)
Re: [achiganmi] perl script help needed [In reply to] Can't Post

School work?
-------------------------------------------------

 
 


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

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