Decision tables: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
SqrtNegInf (talk | contribs) m (→{{header|Perl}}: use v5.36) |
||
Line 1,664: | Line 1,664: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
<syntaxhighlight lang="perl">use |
<syntaxhighlight lang="perl" line>use v5.36; |
||
use warnings; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
our(@q,%a); |
|||
local *q = shift; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
for my $prompt (@q) { |
for my $prompt (@q) { |
||
print "$prompt: "; |
print "$prompt: "; |
||
Line 1,690: | Line 1,688: | ||
'Printer does not print', |
'Printer does not print', |
||
); |
); |
||
my %answers = ( |
my %answers = ( |
||
0b00100000 => 'Check the power cable', |
0b00100000 => 'Check the power cable', |