5

Print @array content to a file

view full story
linux-howto

http://www.unix.com – Hi, as the title, I have an array @f_lines with gene information in it. How can I put the content of @f_lines into a file so that I can read it? I tried this: open(OUTPUT, "file"); # put gene information in this file; @f_lines = ("gene1", "gene2", "gene3"...); # gene information; print OUTPUT @f_lines; close(OUTPUT); I didn't get any warnings, neither did i see gene information in "file". Does anyone know the problem? Thanks very much for help~ By the way above is part of the script I ran in a shell. (HowTos)