in reply to Memory Problems with Parsing
Usually, loops need something that allows them to finish, but your until loop doesn't have anything to make it end:
If the test succeeds, it always will, because there's nothing in there that will change $_.until ($_=~"From:"){push (@list, $_);}
As an aside, it's more usual to write regular expressions that look like regular expressions, not strings. So, $_=~"From:" can be written $_ =~ /From:/, or just /From:/ as they are automagically bound to $_.
update: clarification of first para
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Memory Problems with Parsing
by phantom20x (Acolyte) on Jul 30, 2007 at 13:54 UTC | |
by TGI (Parson) on Jul 30, 2007 at 16:55 UTC | |
by phantom20x (Acolyte) on Aug 01, 2007 at 04:44 UTC |