Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: I need a perl script to make every instance of a repeated word unique

by jeffa (Chancellor)
on Jan 28, 2011 at 21:37 UTC ( #884935=note: print w/ replies, xml ) Need Help??


in reply to I need a perl script to make every instance of a repeated word unique

If the ID is missing, then maybe you should not insert it into your table. I presume you are talking about a database here ...are you? Another alternative would be to add an auto incremented column and let your database insert the unique IDs for you.


jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)


Comment on Re: I need a perl script to make every instance of a repeated word unique
Select or Download Code
Re^2: I need a perl script to make every instance of a repeated word unique
by Renyulb28 (Novice) on Jan 28, 2011 at 21:41 UTC
    While the ID is missing, each entry is still important to keep in the file since it is a reference file associated with another data file. Thus, the analysis program will read the undefined ID as missing, but it still needs it there to keep the two files consistent. I have the reference file as a text file right now with tab delimited formate, and would like to know if there is a simple solution to making each rsundefined unique as that would solve the problem by itself

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-12-26 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (175 votes), past polls