Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: Pb. with ioctl? Message-ID: <1991Jan26.220648.21370@convex.com> Date: 26 Jan 91 22:06:48 GMT References: <120105@uunet.UU.NET> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 22 Nntp-Posting-Host: pixel.convex.com From the keyboard of mf@uunet.UU.NET (mf): : ioctl(STDIN, $TIOCGETP, $ttyb) || die "can't ioctl: $!"; : : fails with "can't ioctl: Not a typewriter" even for 1-line : programs (2-line, actually, with the require "sys/ioctl.ph"). Try: ioctl(STDIN, &TIOCGETP, $ttyb) || die "can't ioctl: $!"; h2ph doesn't create definitions of form $foo, but rather of form &foo instead. You might perhaps try to use h2pl for speed (which will produce $foo things) if you get h2ph to work, but last time I ported it to a different system, (SunOS 4.1) it took quite a lot of hacking to make it work. --tom ps: also, do NOT h2pl syslog.ph or you'll blow away syslog.pl! sorry. -- "Hey, did you hear Stallman has replaced /vmunix with /vmunix.el? Now he can finally have the whole O/S built-in to his editor like he always wanted!" --me (Tom Christiansen )