Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old January 26th, 2001, 03:35 AM
walshs walshs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 112 walshs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Talking

Hi

I am using DBI, to link to MYsql on both a unix platform and a windows platform for diffrent programs , the unizx platform being at work and the windows at home for my own projects.

The problem is that in both cases i collect e-mail addresess out of old archived e-mails and want to put them into a database , obvioulsy the e-mail field in MYsql is set to unquie to avoid duplicates.

So when i use a little bit of perl to loop round the archived e-mails and pull out the e-mail addresses there in some cases will be duplicates . And because on the Unix platform when there was a duplicate the DBI threw up an error such as "DBI found duplicate entry" or something . But it still carried on porcessing the rest of the text file and if it came across a duplicate it chucked an error and carried on.

So thorugh lazinees (ok i know u hate programmers who are lazy , but i was tired) i tried the same thing on my windows machine however this time it chukced and error at stopped and quit the perl script wihtout processign the rest of the text file.

My question why the diffrence on the two platforms , and is there any way of making the windows script to carry on and ignore the errors.

TO be honest i am just curious as why there is a diffenrce , and i was hoping someone here could shed a little light on the problem

regards

Waseem
__________________
World Cup Football (Soccer) Forums
http://www.todayinsoccer.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > DBI and Duplicate Values


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway