On Jan 7, 2004, at 2:20 PM, Dan Muey wrote:



Is that possible to do with one line?

technically no, because you needed my ($firstchoice, $use_second_choice_if_first_is_empty); my $secondchoice = 's2';

then you can do

my $guts = ($use_second_choice_if_first_is_empty)? $secondchoice : $firstchoice || '';


ciao drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to