[comp.lang.perl] sh: foo=$bar-baz; perl:

martin%easby.durham.ac.uk@pucc.PRINCETON.EDU (Martin Ward) (08/01/90)

| Anything better?  Remember, the variables could have looooooooong names
| you rather wouldn't retype.

How about: $foo = $bar ? $bar : $baz;

I didn't retype (honest) - but perhaps Maarten doesn't have an editor which
can select and copy? I am sure Randal will write one for him in perl...
but can he fit it into one line? :-) :-)

		Martin.

My ARPANET address is:  martin%EASBY.DUR.AC.UK@CUNYVM.CUNY.EDU
OR: martin%uk.ac.dur.easby@nfsnet-relay.ac.uk  UUCP:...!mcvax!ukc!easby!martin
JANET: martin@uk.ac.dur.easby    BITNET: IN%"MARTIN@EASBY.DURHAM.AC.UK"