Hi Chris! Have you visited http://perl-begin.org/ yet and read a good introductory book or tutorial?
On Thursday 04 Feb 2010 09:27:32 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. > You need to declare variables using "my". Can you show us what you have so far? Regards, Shlomi Fish > Can somebody please help? -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Why I Love Perl - http://shlom.in/joy-of-perl Deletionists delete Wikipedia articles that they consider lame. Chuck Norris deletes deletionists whom he considers lame. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/