Click here to get back home

Newbie wants a simple script in perl

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Newbie wants a simple script in perl 2007 04-05-2008
Posted by 2007 on April 5, 2008, 6:47 pm
Please log in for more thread options
> >I have a file called "list1" - its got about 80 rows - each row is
> >alpha numeric name w/ ".txt" extension - each name refers to a file in
> >the dir.
>
> >The script reads the list - for each name in the list, it will perform
> >an operation (an executable of a "C-program" and writes to same name
> >with a different extension, say ".mp3".
>
> Ok.
> What is your question (if you got any) or the point of your posting?
>
> jue

I need help in writing please

Also, if I use "print" within perl to the dump a executable command to
the monitor, will the process be executed and the perl will wait
before it throws the next one to screen?

Posted by A. Sinan Unur on April 5, 2008, 9:09 pm
Please log in for more thread options
news:720e7bce-09bc-4870-8877-
607b3ea28afe@p39g2000prm.googlegroups.co
m:

...

>> What is your question (if you got any) or the point of your
>> posting?
...
>
> I need help in writing please
>

First, try to help yourself.

If you want the script written for you, I am sure there will be a
few people who'd do it for $500. If you want tech support to go with
that, maybe $750. If you would like me to write it, the rate goes up
to $2500.

If you are willing to pay for the job, then post an announcement at
http://jobs.perl.org/

Otherwise, try to solve your problem first on your own (make sure to
consult the various resources available to you) and then post
concrete questions here.

Sinan

--
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/

Posted by Jürgen Exner on April 5, 2008, 9:36 pm
Please log in for more thread options
>> >I have a file called "list1" - its got about 80 rows - each row is
>> >alpha numeric name w/ ".txt" extension - each name refers to a file in
>> >the dir.
>>
>> >The script reads the list - for each name in the list, it will perform
>> >an operation (an executable of a "C-program" and writes to same name
>> >with a different extension, say ".mp3".
>>
>I need help in writing please

Ok, what do you have so far? Show us your current code, explain what it
is supposed to do (you got that part already), what it is actually
doing, or where you are stuck. I am sure someone will be happy to show
you how to get unstuck.

>Also, if I use "print" within perl to the dump a executable command to
>the monitor,

This sentence doesn't compute. I have absolutely no idea what you are
talking about.

>will the process be executed and the perl will wait
>before it throws the next one to screen?

print() has nothing to do with process control. Where did you get that
idea?

jue

Posted by Johann Kappacher on April 6, 2008, 5:16 am
Please log in for more thread options
Hi,

Rui Macial has already told you: "Do not let others do your homework!"
Try some coding first.
Moreover, many neebies have asked the same question, you will find
helpful replies.

This works at least in ksh/bash: (no shell builtins for var-substitution)

while read file
do
f_short=$(echo $file | cut -d . -f 1) # strip the .txt suffix
C_PROGRAM $file > "$.mp3"
done < list1

--jk

Posted by Tad J McClellan on April 6, 2008, 10:32 am
Please log in for more thread options

> Subject: Newbie wants a simple script in perl


Newbie should begin writing a simple script in Perl.

Newbie should post the broken code here when you get stuck.

Then we will help newbie fix the broken code.


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher0cmdat/"

Similar ThreadsPosted
How to call a simple perl script from HTML without need of HTTPS but simple HTTP ? May 11, 2006, 4:37 am
Need help with a simple (I think) Perl script May 28, 2008, 11:01 pm
NEWBIE: Perl CGI script that redirects to another webpage January 5, 2005, 12:40 am
[Newbie] Running a Perl script on Windows October 8, 2005, 8:48 pm
Newbie...Not able to include a file in perl script February 19, 2007, 10:43 pm
[newbie] XML::Simple install fails? June 4, 2007, 7:54 am
Can someone write me a simple Perl script for a few bucks? February 3, 2006, 11:20 pm
Improving performance of a simple Perl script July 28, 2006, 5:20 pm
launch simple perl script from browser January 15, 2007, 6:35 pm
Newbie with simple File handling problem November 14, 2006, 12:52 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap