On Thu, 29 Apr 1999, Richard Gordon wrote: > Finally, I did try to get the script to run on my Mac by using a line > by line read instead of slurping in the whole file and this also > crapped out tho I gave MacPerl 50 megs of memory. It's not the first > time I've come across memory related problems trying to do Perl > things on a Mac that disappear entirely once I migrate them to > Solaris, especially cgi. At the moment, I don't consider that so much > an indictment of MacOS as a tribute to Solaris, but I am hoping that > OS X will provide some degree of equality that just isn't there right > now. > I thought I'd add that *my* use of slurping in the whole file is not prescriptive. There are situations where I'll use it, and situations where I won't. Admittedly I'm partial to the technique. :-) I try to go with the _logic_ of the problem. Certain file-processing problems beg for a line-by-line filter, and I'm not going to obscure the logic by file-slurping in such a case. But, then again, the ugly practical issues sometimes intrude also. :-) Arved ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org