On Sep 25, 12:34 pm, [EMAIL PROTECTED] (Gerald Wheeler) wrote:
> I could use some real expert help here..

No you could use some real basic help here.  There is nothing in your
requirements that indicates the need for an "expert" of any sort.

> I have only the basic - no add-on modules except what comes with Perl
> What is needed, Is this possible with Perl 5.x..  

Yes, it is.

> read from file olddata.txt output to newdata.txt
>
> 1) output all numerics inside parenthesis to negative values e.g., (32)
> should output as -32
> 2) output all numerics inside double quotes to the number inside the
> quotes without the comma e.g., "2,345" should be output as 2345
> 3) ignore (do not output) lines with alphabet characters A-Za-z
> 4) ignore (do not output) lines with only commas
> 5) ignore (do not output) the first and last column of the line
> 6) print out data as one data value per line preceeded by an index
> starting at 1, from top of column one to bottom of column one, then
> column two (top to bottom), etc.

So what have you tried so far?  How did those attempts not work for
you?  Or are you just expecting someone to write a script for you?
While that certainly might happen, it's far more likely that someone
will be willing to help you fix and improve your own work.

... Especially since this sounds strongly like homework to me.

Paul Lalli


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to