All pastes #471928 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-05 06:10 UTC
rendered paste body
while (1 == 1) {

open FIFO, "/home/steve/.tmp/pipe";

foreach (<FIFO>) {
	@args = split / /;
	foreach (@args) {
		print;
	}
	print "\n";
	if (@args[0] == "plane") {
		print "plane @args[1]";
	}
}

}



in bash:
~$ echo "fffff left" > .tmp/pipe



output is:

fffffleft

plane left