Execute an external script

2004-03-02 Thread p . libardi
Hi! I've written a perl cgi script to create a web page. Now what I'd like to do is to execute an Octave script from the Perl one and get its output inside my perl script. I'm working on a Windows XP machine. I tried $result = `C:/Program\ Files/GNU\ Octave\ 2.1.50/bin -q my_script.m`; but $result

RE: Execute an external script

2004-03-02 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi! I've written a perl cgi script to create a web page. Now what I'd > like to do is to execute an Octave script from the Perl one and get > its output inside my perl script. I'm working on a Windows XP machine. > I tried $result = `C:/Program\ Files/GNU\ Octave\ 2.1.50/

Re: matching newline

2004-03-02 Thread Camilo Gonzalez
zsdc wrote: Camilo Gonzalez wrote: zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later. I

beginners-cgi@perl.org

2004-03-02 Thread Baiss Magnusson
If I get the error ...cwdmail.cgi: Undefined subroutine &main::sendmail called at ...cwdmail.cgi line 29. And I have SendMail installed with a line @EXPORT = qw(&sendmail); Are the following true? 1) In I have no objects so the whole file defaults to object because this is the line

Re: matching newline

2004-03-02 Thread zsdc
Camilo Gonzalez wrote: zsdc wrote: Camilo Gonzalez wrote: zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email i

Re: Execute an external script

2004-03-02 Thread zsdc
[EMAIL PROTECTED] wrote: Hi! I've written a perl cgi script to create a web page. Now what I'd like to do is to execute an Octave script from the Perl one and get its output inside my perl script. I'm working on a Windows XP machine. I tried $result = `C:/Program\ Files/GNU\ Octave\ 2.1.50/bin -q