Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!mips!rapid!bjorn From: bjorn@mips.COM (Bjorn Satdeva - /sys/admin Inc) Newsgroups: comp.lang.perl Subject: shift( split( ... - bad syntax Message-ID: <42583@mips.mips.COM> Date: 31 Oct 90 19:12:17 GMT Sender: news@mips.COM Lines: 11 Why is the following not legal? $OldName = shift( split( '\.', $OldDomain ) ); Split is returnning an array. Doing a shift on the result, without first storing it to a temp variable seems to me it should be a perfectly legal thing to to. What had I misunderstood? Bjorn Satdeva