Home  |  Linux  | Mysql  | PHP  | XML
From:Chris Date:Fri Feb  5 00:37:34 2010
Subject:Re: 1-line text file with numbers, need to add to them
On Feb 4, 2:27 am, cacogg...@gmail.com (Chris) wrote:
> I need some help with this problem.
> I've got a text file datafile with 1 line of data comprised of 30
> different numbers delimited with ~s.
>
> I need to open this file, grab this line of data, split it into
> individual numbers, perform some simple math (addition) on each
> number, and then put the new values back into the datafile, replacing
> the original data that was there.
>
> I have tried for two days to figure out what I'm doing wrong, but I
> keep getting "needs a package name" errors for every variable
> nomenclature I try to work with. I've declare arrays and variables
> until my fingers are numb and nothing is working. I'm using Perl 5.008
> if that matters.
>
> Can somebody please help?

I posted a reply this morning in response to several messages here,
and I included two different versions of the script I'm using that
keeps failing. I posted my reply through the google groups interface
but my post does not show up at the google site and it's been about 8
hours since posting. How long does it take for posts to show up if one
uses the google interface because this delay is absurd?

Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: 1-line text file with numbers, need to add to them
Re: running stats on a file
Re: Lingua::Stem 0.83 module installation problem
Re: running stats on a file
Re: Any Good SCM tool to manage Perl Code locally



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants