Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hpcc01!okamoto From: okamoto@hpcc01.HP.COM (Jeff Okamoto) Newsgroups: comp.lang.perl Subject: Re: Possible bug with shifting an array Message-ID: <12150005@hpcc01.HP.COM> Date: 16 Aug 90 00:40:21 GMT References: <12150004@hpcc01.HP.COM> Organization: Tendou Dojo Lines: 19 Well, so I got caught by one of the "Ten Most Common Perl Mistakes". This one's a little more strange. I'm trying to unpack a structure that contains binary data. My template is like this: $STRLEN = 20; $struct = "l i i a$STRLEN"; After read'ing a number of bytes and unpacking, the variable that corresponds to the "a" above doesn't get filled with nulls, it gets filled with spaces, which I have verified using index. Using "A" instead of "A" yields identical results. Could this be a problem with either read or unpack? P.S. I'm at patchlevel 18. P.P.S. Using the -w flag shows no problems.