small perl script to read from one file and write to another

Completed Posted Jan 10, 2006 Paid on delivery
Completed Paid on delivery

I need a small and very simple perl script.

The script needs to get information from a CSV data file and write it to another file (HTML) based on information in a config file.

The config file will tell the script:

- where to find the CSV file containing the data

- what data is to be written to the html file

- where to write the data in the HTML file

- how much data from the CSV file to write into the HTML file (an assignable # of entries/run)

- an email address to use to email me when the data from the CSV file has been 'used'

Essentially the script will take data from the CSV file and insert it into an HTML file.

The script should be able to run as a cron job.

basically I want to be able to use data in the CSV file to write new html links into an html file on a regular basis. The CSV file will basically contain 2 or 3 entries/line

2 entries:

anchor text,URL

which the script would convert into:

[anchor text][1]

3 entries:

anchor text,URL,BLURB

which the script would convert into:

[anchor text][1]

BLURB

The HTML file would contain a place holder to tell the script where to write the information like:

%%URL%%

%%BLURB%%

Which the script would replace with the proper HTML.

Of course if there were only 2 entries/line in the CSV file then the HTML file would only use the %%URL%% place holder.

The script would also need to re-insert the place holders in order to know where to write information the next time the cron job ran the script.

I would also like the script to send me an email when it has 3 or fewer remaining entryies to write from the CSV data file.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

* * *This broadcast message was sent to all bidders on Thursday Jan 19, 2006 4:23:09 PM:

Hello,

Thanks for your bid on my small perl script project.

A few people have asked for examples of the files and the config file to understand the program.

I have attached a new zip file to the project description that you can download and use.

Thanks for your bid and I will choose a coder shortly.

## Platform

should run on apache web servers with perl installed

should be able to run as a cron job

Engineering MySQL Perl PHP Software Architecture Software Testing

Project ID: #3201698

About the project

6 proposals Remote project Active Jan 28, 2006

Awarded to:

khokchin

See private message.

$12 USD in 14 days
(118 Reviews)
5.1

6 freelancers are bidding on average $10 for this job

gihvw

See private message.

$12.75 USD in 14 days
(3 Reviews)
2.5
matthiasklein

See private message.

$12.75 USD in 14 days
(5 Reviews)
2.4
azheramin

See private message.

$12.75 USD in 14 days
(1 Review)
0.0
foolproofcode

See private message.

$3.4 USD in 14 days
(0 Reviews)
0.0
glonka

See private message.

$8.5 USD in 14 days
(0 Reviews)
0.0