Re: Reading a list of numbers from a file into a array

2008-10-29 Thread Adam Jimerson
Thanks for the help. "John W. Krahn" wrote: > vendion wrote: >> Hello I am having trouble finding the correct syntax for reading a >> list of numbers from a file, it is open and can read from it, I tried >> with >> while () { >> chomp; >> @some_array = $_; >> print "@some_array\n"; >> } > > my @

Re: Reading a list of numbers from a file into a array

2008-10-26 Thread John W. Krahn
vendion wrote: Hello I am having trouble finding the correct syntax for reading a list of numbers from a file, it is open and can read from it, I tried with while () { chomp; @some_array = $_; print "@some_array\n"; } my @some_array; while ( ) { chomp; push @som

Reading a list of numbers from a file into a array

2008-10-26 Thread vendion
Hello I am having trouble finding the correct syntax for reading a list of numbers from a file, it is open and can read from it, I tried with while () { chomp; @some_array = $_; print "@some_array\n"; } and @some_array = ; print "@some_array\n"; but in both cases it reads