randy@uokmax.ecn.uoknor.edu (Longshot) (12/18/89)
I got a "compilation error" on line 31 of the recently posted pstruct program. It reported the next token as "&", if this helps. Randy -- Randy J. Ray University of Oklahoma, Norman Campus (405)/325-5370 !chinet!uokmax!randy randy@uokmax.uucp randy@uokmax.ecn.uoknor.edu "...and he who made kittens put snakes in the grass..." -- Jethro Tull -=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*-=*
tchrist@convex.COM (Tom Christiansen) (12/18/89)
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 <sys/errno.h>: Editor too big!"