Re: [SPOILER] Solution to Perl Quiz of the Week #23
Mark Jason Dominus <[email protected]>
| Newsgroups | gmane.comp.lang.perl.qotw.discuss |
|---|---|
| Message-ID | <[email protected]> |
Roger Burton West <roger-UvLOT2mcgw/[email protected]>: > foreach my $n (@ARGV) { > if ($n==0) { > } elsif ($n==1) { The program should have one line of output when N=0. There is one balanced string of 0 open and 0 close parentheses, which is "".