Odd word problem: Difference between revisions

→‎{{header|Perl}}: comment edit
(→‎{{header|Perl}}: added threads version)
(→‎{{header|Perl}}: comment edit)
Line 760:
 
=={{header|Perl}}==
BothAll versions process text until EOF, not dot.
 
Input:
Line 816:
}</lang>
===Threads (processes) version===
Perl still has weak threads support. It's farFar more safe yet portable is to use processes (fork).
 
Here, fork is used instead of threads and pipe is used instead of conditional variable.
26

edits