Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucla-cs!uci-ics!nagel From: nagel@ics.uci.edu (Mark Nagel) Newsgroups: comp.lang.perl Subject: Re: push bug? Message-ID: <25B79222.26745@paris.ics.uci.edu> Date: 19 Jan 90 22:18:09 GMT References: <25B55917.26081@paris.ics.uci.edu> <6840@jpl-devvax.JPL.NASA.GOV> Lines: 24 lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: >I don't think ?: should be allowed as an lvalue. If you really want >to do something like that, you could use the * aliasing mechanism to say > local(*tmp) = $hdrval{$CTL} eq "" ? *ngrps : *ygrps; > push(@tmp,$grp); >Admittedly, not as concise. But then, I don't allow > ($maybe ? $foo : $bar) = 1234; >either. OK, I guess I just viewed push as a function of sorts and I was just selecting a parameter. From what you say, it is really an operator. I can live with that. Mark -- 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 |