Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!mace.cc.purdue.edu!abe From: abe@mace.cc.purdue.edu (Vic Abell) Newsgroups: comp.lang.perl Subject: Re: Bug on Sun 3's (Perl 4.000) Message-ID: <7174@mace.cc.purdue.edu> Date: 5 Apr 91 20:43:37 GMT References: Organization: Purdue University Computing Center Lines: 14 In article mitch@hq.af.mil (Mitch Wright) writes: >This program works on my Sun386i (SunOS 4.0.2) just fine, but refuses to >work on our Sun 3/180S under SunOS 4.1. >#!/usr/gnu/perl >print unpack("H2", pack("I", 97)); Try "H8" as the first unpack argument. You're only printing the first 8 bits. On my NeXT work station, "H8" produces: 00000061 What's the byte ordering on a 180S? Vic Abell,