in reply to home work help
You should also check right from the start if there are more than 3 commands, and drop out right then and there.should be $cmd = <STDIN>;
I know this isn't TOO much help, but it is homework. and IMHO pipes are a lot of fun to play with and figure out on your own. You can do a lot of really slick stuff with them. but if someone tells you how to do it, you lose the fun of figuring it out ... and you won't learn them as well.if ($max > 3) { print "exiting \n"; exit(1); }
|
|---|