Help for this page

Select Code to Download


  1. or download this
    my %whenPhrases = (
       body => q{has to fight},
    ...
       exists $whenPhrases{some}
       ? $whenPhrases{some}
       : q{yes, there is always a space for default};
    
  2. or download this
    my $some = get_word();
    my $when =
    ...
             : $some eq 'time'
               ? 'can only tell'
               : 'yes, there is always a space for default';