Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!jarthur!uci-ics!nagel From: nagel@paris.ics.uci.edu (Mark Nagel) Newsgroups: comp.lang.perl Subject: push bug? Message-ID: <25B55917.26081@paris.ics.uci.edu> Date: 18 Jan 90 05:50:14 GMT Organization: UC Irvine Department of ICS Lines: 16 The following line causes perl 3.0p8 to crash with a syntax error during compilation: push(($hdrval{$CTL} eq "" ? @ngrps : @ygrps), $grp); syntax error in file /tmp/pdb25979 at line 263, next 2 tokens "((" Execution aborted due to compilation errors. Should it? The associative array hdrval and other variables are OK, it just seems like perl is unwilling to accept the ternary operator as an array in this context. -- Mark Nagel UC Irvine Department of ICS +----------------------------------------+ ARPA: nagel@ics.uci.edu | Charisma doesn't have jelly in the | UUCP: ucbvax!ucivax!nagel | middle. -- Jim Ignatowski |