![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
torf or Mindy?by metaperl (Curate) |
on Apr 29, 2009 at 15:11 UTC ( #760901=snippet: print w/replies, xml ) | Need Help?? |
sub torf { my($val, $true_word, $false_word)=@_; $true_word ||= 'Yes' ; $false_word ||= 'No' ; $val ? $true_word : $false_word ; }
|
|