ထႅမ်းပလဵတ်ႉ:Code:Valid
လွင်ႈၸႂ်ႉတိုဝ်း
မႄးထတ်းThis template is used to display a code that is at least syntactically valid.
တူဝ်ယၢင်ႇ
မႄးထတ်းThe following call
{{Code:Valid|The code <syntaxhighlight lang="perl"> my @array = qw(one two three); print "Array contains " . @array . " element" . ((@array == 1) ? "" : "s") . "\n"; </syntaxhighlight>| returns the following:| Array contains 3 elements }}
displays a perl code that is valid:
The code
my @array = qw(one two three);
print "Array contains " . @array . " element" . ((@array == 1) ? "" : "s") . "\n";
returns the following:
Array contains 3 elements