Hello folks, Sorry if this has been covered before, but I'm at my wit's end. Let me preface this by saying that I'm just about one step above a newbie - I am going through some online tutorials, and I have the camel and llama books and the html version of mppe. I am trying to read the hostinfo.dat file Netscape uses for newsgroups to put all the groups into an array, then go through and select which ones will be up for posting. My ISP offers over 33,000 different groups, so I definitely want to shrink the number I have to choose from. I first made a copy of the hostinfo.dat file so I don't mess it up, then I tried to read the file into an array, like so: #!/user/local/bin/perl -w print "Please select a file to view: "; chomp($file_name = <STDIN>); open(FILE, "$file_name"); @newsgroups = <FILE>; print @newsgroups; close FILE; gives me an out of memory message. I tried shrinking the file down from 33,000 lines to 27,000 lines - same problem. Am I going in the wrong direction? Also, I tried to split a range of array elements @goodgroups = split /,/, @newsgroups[12.. $#newsgroups] but the script hasn't let me get far enough along to know whether this will return what I'm after. Thanks in advance for any and all responses. Best regards, Bill McAuliff, webmaster _______________________________________________ adams apple Web Site Design communications Internet Classifieds group womc3@adamsapple.com http://www.adamsapple.com 407.788.8812 _______________________________________________ ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch