🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #1172

Re: Pliki binarne.

#1172
From: Piotr Piatkowski
Date: Tue, 31 Mar 1998 11:57
18 lines
1131 bytes
Krzysztof Murkowski <murek@ml.put.poznan.pl> wrote:

: Jezeli czytasz dwa bajty to rozumiem, ze jest to mlodszy/starszy bajt 
: czyli zamiast:

: read(DGNF, $tlen, 2);

: moze tak:

: $tlen = ord( getc( DGNF )) + 256 * ord( getc( DGNF ));

Można też tak:

read(DGNF, $tlen, 2);
$tlen = unpack("s",$tlen);

-- 
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Technical Details
Message-ID: <6fqln6$8ko$1@galaxy.uci.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!ict.pwr.wroc.pl!agh.edu.pl!agh.edu.pl!not-for-mail
References: <35209238.71BC202B@mincom.com> <3520956B.4122@ml.put.poznan.pl> <3520BBF2.92312E61@mincom.com> <3520C083.10B9@ml.put.poznan.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!ict.pwr.wroc.pl!agh.edu.pl!agh.edu.pl!not-for-mail
From: Piotr Piatkowski <kompas@galaxy.uci.agh.edu.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: Pliki binarne.
Date: 31 Mar 1998 13:57:26 +0200
Organization: University of Mining & Metallurgy
Lines: 18
Message-ID: <6fqln6$8ko$1@galaxy.uci.agh.edu.pl>
References: <35209238.71BC202B@mincom.com> <3520956B.4122@ml.put.poznan.pl> <3520BBF2.92312E61@mincom.com> <3520C083.10B9@ml.put.poznan.pl>
NNTP-Posting-Host: galaxy.uci.agh.edu.pl
Mime-Version: 1.0
X-Newsreader: TIN [UNIX 1.3 unoff BETA 971018; sun4m SunOS 5.5.1]
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit