in reply to Re: Truely Unique Code Set?
in thread Truely Unique Code Set?

Excellent! Thanks Dave, this is an excellent exposition of the key characters in this little program, I think I follow roughly 90% of the optimization ideas that you've presented. I'm going to study your improved program (in addition to Perlbotics work) to better my programming, such as it is. My forte is in fine art, and sculpture; I've only recently evolved into coding as it is a wonderful artform in itself when allied with the interactive possibilities it can offer in sculptural works. I am currently working on a piece where I hand draw the trace lines of a microprocessor to resemble a face, where the ATMEGA 328 chip is in the 'nose'. Then I etch the transparent PCB to form the circuit, carve the rear and illuminate it via C to control LEDs integral in the work. But I digress. Thank you so much for taking the time to work on this. Your insights will extend into my thinking when coding going forward. Rich.
I dove into the C, found a Shell and inside was a PERL.

Replies are listed 'Best First'.
Re^3: Truely Unique Code Set?
by richCarthew (Initiate) on Oct 20, 2011 at 16:29 UTC
    Hello again Dave, I'm not sure if you'll be notified of a new reply to this thread, however, I'll ask away in the hope that it will be seen.
    I've generated the codes successfully and am now wishing to import them (as a CSV text file) into MySQL to form a table. I'm stumped as to where I could make an adjustment near the 'say' method (within your kindly provided program) so that a comma is inserted directly after each random value, so that the resultant file could then be imported into MySQL via MyPhpAdmin GUI.
    Thanks!
    Rich
    I dove into the C, found a Shell and inside was a PERL.

      If you have access to the MySQL database from the machine you are running the script on you can instead insert the data directly into the database using DBI and DBD::mysql.

      True laziness is hard work
        Thanks GrandFather, I did wonder about that. I guess my next step is to see if those modules are already installed with PERL 5.8.8 - as a newbie with PERL, I've had some prior trouble attempting to install modules from CPAN etc... Cheers, Rich.