Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!rutgers!carssdf!usenet From: usenet@carssdf.UUCP (John Watson) Newsgroups: comp.lang.perl Subject: script gobbles up memory Message-ID: <291@carssdf.UUCP> Date: 1 Mar 91 01:43:50 GMT Organization: C.A.R.S.,Middlesex,NJ Lines: 11 Most of my scripts look something like this: while (<>) { chop; @F=split(/_/); .... some code for each line .... } This gobbles up memory. If I add a "reset 'F';" line in the loop, it is fine. Should I need to do this? If necessary, why wouldn't a line of "undef @F;" work? (it doesn't). John Watson ... Independent Programmer