Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!rearl From: rearl@gnu.ai.mit.edu (Robert Earl) Newsgroups: comp.lang.perl Subject: Re: JAPH's Message-ID: Date: 27 Apr 91 10:44:54 GMT References: <1991Apr27.025230.27994@agora.rain.com> Sender: news@ai.mit.edu Organization: (EVIL!) Lines: 23 In-reply-to: markb@agora.rain.com's message of 27 Apr 91 02:52:30 GMT In article <1991Apr27.025230.27994@agora.rain.com> markb@agora.rain.com (Mark Biggar) writes: | Ok, everybody explain this one! | | do not print ("Just another Perl Hacker\n"); I get an undefined subroutine error, and *then* it prints the line! It's trying to call sub "not" with the return value of the "print" as its argument. perl -e 'do not fork();' gives an error, but perl -e 'do not exec("date");' works, and as a bonus, never gets to the undefined subroutine :-) Apparently it works only with the special operators with the syntax "OP ARG LIST", where ARG for "print" is the filehandle, and for "exec" is the program's argv[0]. --robert