Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!jarthur!uunet!van-bc!ubc-cs!phillips From: phillips@cs.ubc.ca (George Phillips) Newsgroups: comp.lang.perl Subject: Re: problem (at least for me) with pack() Summary: fixed in patch #13 Keywords: pack Message-ID: <9013@ubc-cs.UUCP> Date: 4 Aug 90 07:07:03 GMT References: <9001@jpl-devvax.JPL.NASA.GOV> Sender: news@cs.ubc.ca Distribution: comp Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 17 In article <9001@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: :In article knodel@fido.Colorado.EDU writes: :: My problem with pack() is illustrated below: [ sample code deleted ] :: :: If the repeat count is more than the length of the string given to it, :: it works and pads with spaces as expected; if the repeat count is less :: than the string length, it seems to leave off twice as many characters :: as it should form the end. :: Is this a bug (with possibly an existing patch), or does it sound :: like perl was somehow configured incorrectly for our system? : :Sounds more like the latter. What's your patchlevel? Does your perl pass :the validation suite? Seems like the sort of thing an optimizer screws up. : Actually, the former, but not any more. It was fixed in patch #13 to 3.0.