Re: Little script help please

2000-09-12 Thread wsuetholz
Hello, Just came across the original message, and found that this is indeed perl, and your comments are probably correct. My comments were specific to Shell script, not Perl script. Bill Suetholz On 08-Sep-00 Mervyn Jack wrote: > Our programmer, Andrew, tells me the problem is with the lines

Re: Little script help please

2000-09-12 Thread wsuetholz
Hello, On 08-Sep-00 Mervyn Jack wrote: > Our programmer, Andrew, tells me the problem is with the lines... > if [ $hessian_colour="twotone" ]; then > > The "=" set's $hession_colour to twotone and returns a TRUE to say the > operation > has been successful. > You need to use a "==" to compare t

Re: Little script help please

2000-09-12 Thread wsuetholz
Hello, Just came across the original message, and found that this is indeed perl, and your comments are probably correct. My comments were specific to Shell script, not Perl script. Bill Suetholz On 08-Sep-00 Mervyn Jack wrote: > Our programmer, Andrew, tells me the problem is with the line

Re: Little script help please

2000-09-12 Thread wsuetholz
Hello, On 08-Sep-00 Mervyn Jack wrote: > Our programmer, Andrew, tells me the problem is with the lines... > if [ $hessian_colour="twotone" ]; then > > The "=" set's $hession_colour to twotone and returns a TRUE to say the > operation > has been successful. > You need to use a "==" to compare

Re: Little script help please

2000-09-07 Thread Craig Sanders
On Thu, Sep 07, 2000 at 05:57:32PM -0600, Art Sackett wrote: > On Fri, Sep 08, 2000 at 09:36:51AM +1000, ridgey wrote: > > Below is a script I am writing, what it does it take in values from > > webpage and basically just write them to a file. > > First thing to do is to stop writing perl like it's

Re: Little script help please

2000-09-07 Thread Art Sackett
On Fri, Sep 08, 2000 at 09:36:51AM +1000, ridgey wrote: > Below is a script I am writing, what it does it take in values from webpage > and basically just write them to a file. First thing to do is to stop writing perl like it's sh. Second thing would be to ditch cgi-lib.pl in favor of CGI.pm.

Re: Little script help please

2000-09-07 Thread Mervyn Jack
Our programmer, Andrew, tells me the problem is with the lines... if [ $hessian_colour="twotone" ]; then The "=" set's $hession_colour to twotone and returns a TRUE to say the operation has been successful. You need to use a "==" to compare the two values. For String comparisons, you should real

Little script help please

2000-09-07 Thread ridgey
Below is a script I am writing, what it does it take in values from webpage and basically just write them to a file. What I am trying to do is: there is heap of different sections on the page, hessian, linen and more to be added. I want the script to ONLY write to file the section that is selecte

Re: Little script help please

2000-09-07 Thread Craig Sanders
On Thu, Sep 07, 2000 at 05:57:32PM -0600, Art Sackett wrote: > On Fri, Sep 08, 2000 at 09:36:51AM +1000, ridgey wrote: > > Below is a script I am writing, what it does it take in values from > > webpage and basically just write them to a file. > > First thing to do is to stop writing perl like it'

Re: Little script help please

2000-09-07 Thread Art Sackett
On Fri, Sep 08, 2000 at 09:36:51AM +1000, ridgey wrote: > Below is a script I am writing, what it does it take in values from webpage > and basically just write them to a file. First thing to do is to stop writing perl like it's sh. Second thing would be to ditch cgi-lib.pl in favor of CGI.pm.

Re: Little script help please

2000-09-07 Thread Mervyn Jack
Our programmer, Andrew, tells me the problem is with the lines... if [ $hessian_colour="twotone" ]; then The "=" set's $hession_colour to twotone and returns a TRUE to say the operation has been successful. You need to use a "==" to compare the two values. For String comparisons, you should rea

Little script help please

2000-09-07 Thread ridgey
Below is a script I am writing, what it does it take in values from webpage and basically just write them to a file. What I am trying to do is: there is heap of different sections on the page, hessian, linen and more to be added. I want the script to ONLY write to file the section that is select