Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!tchrist@convex.COM From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: Pstruct error Message-ID: <4061@convex.UUCP> Date: 18 Dec 89 14:31:49 GMT References: <1989Dec18.071341.22@uokmax.ecn.uoknor.edu> Sender: news@convex.UUCP Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 15 In article <1989Dec18.071341.22@uokmax.ecn.uoknor.edu> randy@uokmax.UUCP (Longshot) writes: >I got a "compilation error" on line 31 of the recently posted pstruct program. >It reported the next token as "&", if this helps. Line 31 reads: while ($line = &nextline) { The & means to call the function, like "do nextline()". It sounds like you're running perl version 2 not version 3. Also, version 3 would have reported the next TWO tokens, not just one. --tom Tom Christiansen {uunet,uiucdcs,sun}!convex!tchrist Convex Computer Corporation tchrist@convex.COM "EMACS belongs in : Editor too big!"