Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: Reading a file into a string Message-ID: <120693@uunet.UU.NET> Date: 31 Jan 91 08:06:09 GMT References: <97130173@bfmny0.BFM.COM> <120644@uunet.UU.NET> <11242@jpl-devvax.JPL.NASA.GOV> Organization: UUNET Communications Services, Falls Church, VA Lines: 28 In article <11242@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: >In article <120644@uunet.UU.NET> rbj@uunet.UU.NET (Root Boy Jim) writes: >: In that case, perhaps one should set a limit on how much they slurp >: and die/complain on therwise. > >Perhaps one should, as long as they aren't Perl. Any limit Perl might set >would be too small for some people and too large for others. Good point. I meant that if one is really going to slurp a file, one should set one's own limit, or iterate, etc. >: Horshoe mode .signature: perl -e 'print "Just another $0 hacker,"' > >That may not do what you expect. It's a joke. Close only counts in horseshoes, and my solution is only close. Here's another one. Lottery mode .signature: print pack('c',32+int rand 95) while ++$z % 26 Altho I think it'll take a random number generator which produces more random bits and an infinite number of camels to print the magic slogan. However, I did manage to produce some famous initials towards the end of the sixth iteration, along with my own, at the very end. -- Root Boy Jim Cottrell Close the gap of the dark year in between