Em Andamento

Simple Perl Program for Editing a file.

I would like a Perl Program written that will edit a text file. The program will take as input a text file that consists of a list of items with one item per line. The output file will be a list of database rows that I can then upload to my server. At the beginning of the program code there should be a place for me to specify values for the following:

starting id value (some integer, $starting_id for example)

group category (some char string, $category for example)

parent id value (some integer, $parent_id for example)

EXAMPLE 1: GENERAL CASE OUTPUT

($starting_id, '$first_line', '$category', $parent_id),

($starting_id+1, '$second_line', '$category', $parent_id),

($starting_id+2, '$third_line', '$category', $parent_id),

etc...

EXAMPLE 2: SPECIFIC CASE OUTPUT

In this example we will pretend that the input file is as follows:

cats

dogs

pigs

kangaroos

deer

buffalo

wild geese

furthermore we will pretend that at the top of the program I have specified that:

starting_id = 22001

category = "animals"

parent_id = 32

the output should be:

(22001, 'cats', 'animals',32),

(22002, 'dogs', 'animals',32),

(22003, 'pigs', 'animals',32),

(22004, 'kangaroos', 'animals',32),

(22005, 'deer', 'animals',32),

(22006, 'buffalo', 'animals',32),

(22007, 'wild geese', 'animals',32),

you can output this to a text file or edit the input file I really don't care.

Please document your code and make it as clear as possible so that I might be able to understand how it works to edit and expand it in the future. This should be an easy job for the right person who is experienced with perl. I would have to brush up on perl to do it myself.

one more thing is that the program should ignore any white space at the end of a line (but not in the middle of a line such as in "wild geese" above).

Thanks for looking. I look forward to hearing from you if you have experience with perl.

Habilidades: Vale Tudo, Administração de Bancos de Dados, Engenharia, MySQL, Perl, PHP, Instalação de Script, Shell Script, Arquitetura de software, Teste de Software, SQL

Ver mais: space job, php program code, example php program, editing works, clear string, wild code, program written, pigs, buffalo, Brush, string integer, ignore text php, upload file php server, perl php text database, perl output, editing database, category expand, php edit file upload, php edit simple list, perl edit, wild animals, simple program text file, edit database output, edit text file, php upload text file

Acerca do Empregador:
( 1 comentário ) United States

ID do Projeto: #3060958

Premiar a:

colechristensen

See private message.

$9 USD em 2 dias
(1 Comentário)
0.0

12 freelancers estão ofertando em média $9 para este trabalho

indyprof

See private message.

$10.2 USD in 2 dias
(129 Comentários)
6.1
hainraja

See private message.

$7.65 USD in 2 dias
(141 Comentários)
6.1
matfizvw

See private message.

$10.2 USD in 2 dias
(65 Comentários)
6.1
tomkusvw

See private message.

$10.2 USD in 2 dias
(44 Comentários)
5.0
rajivk2k

See private message.

$8.5 USD in 2 dias
(32 Comentários)
4.6
rickeisermannvw

See private message.

$8.5 USD in 2 dias
(29 Comentários)
4.5
gsmsl

See private message.

$5.95 USD in 2 dias
(22 Comentários)
2.9
moncse

See private message.

$8.5 USD in 2 dias
(5 Comentários)
2.5
projectcodervw

See private message.

$8.5 USD in 2 dias
(1 Comentário)
1.9
iucoder

See private message.

$6.8 USD in 2 dias
(3 Comentários)
0.1
mrngvw

See private message.

$8.5 USD in 2 dias
(0 Comentários)
0.0