On Mon, 2 Jun 2003 15:25:03 -0400, [EMAIL PROTECTED] (Paul Kraus) wrote: >List correct me if I am wrong but you can use single quotes here because >your not using any variables. You are passing exactly what you see. In >fact this is the preferred way to write strings that do not contain >variables or special characters. Correct?
Well the system command has the syntax system($cmd, @args) so if you use single quotes, system will look for a file named 'sendfile.pl ons4jlb' a filename with a space in it. I doubt if that is his intention. >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of >zentara >Sent: Monday, June 02, 2003 3:20 PM >To: [EMAIL PROTECTED] >Subject: Re: Calling a perl script from another perl script > > >On Mon, 2 Jun 2003 14:21:37 +0100 (WEST), [EMAIL PROTECTED] (Jo�o >lu�s bonina) wrote: > >>Well, I've tried the system function, but it isn't executing the script > >>which is located in the same directory... >> >>I'm using it this way : >> system('sendfile.pl ons4jlb'); > >If you havn't found an answer yet, it looks to me like >you have an error with single quotes around 'sendfile.pl ons4jlb' > >It should be like this: >system('sendfile.pl' , 'ons4jlb') the (command , @args) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
