Bareword "WNOHANG" not allowed while "strict subs" in use #### #!/usr/bin/perl # always uses these; use strict; use warnings; # and detect errors use autodie; pipe(READER, WRITE); my $pid =fork(); if ($pid) { print "In parent\n"; close WRITE; my $val1 = 100; while(my $num = ) { print "in while; $num\n"; } close(READER); wait; } else { print "In child\n"; my $val2 = 150; print WRITE "$val2\n"; close(WRITE); print "Child closed write\n"; }