RosettaCodeData/Task/Concurrent-computing/Perl/concurrent-computing-3.pl

9 lines
206 B
Perl
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
#!/usr/bin/perl -l
use strict; # https://rosettacode.org/wiki/Concurrent_computing
use warnings;
use Time::HiRes qw( sleep );
fork or sleep(rand), exit print for qw(Enjoy Rosetta Code);
1 while wait > 0;