Error in the postgres update

2006-02-03 Thread Anish Kumar K.
Hi I am getting a strange error and I have no clue as how to fix this.. I am getting values from select multiple tag from the FORM and trying to update the value in the table. Say the select tag is like this c java perl And I selected "java" , "perl". then the select course will have the v

RE: tracking emails sent

2006-02-03 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: ::That "last;" statement makes certain of it. So, the second :: email should be coming from a second instance of this script. :: You need some mechanism to allow each instance of the script to :: communicate with past instances or you'll need a better test :: than elap

Re: -w switch not working

2006-02-03 Thread Wijnand Wiersma
I do use warnings; in all my scripts, in case the shebang isn't used. That doesn't seem to be the problem though, maybe you should have some code that actually produces warnings? Wijnand -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: -w switch not working

2006-02-03 Thread Chris Devers
On Thu, 2 Feb 2006, Elliot Holden wrote: > This is what I am typing at the Terminal prompt: > > perl -w first.cgi > > first.cgi being the name of my file. What output, if any, are you getting? It seems to work fine here: $ perl -c first.cgi first.cgi syntax OK $ perl -w first.cgi

-w switch not working

2006-02-03 Thread Elliot Holden
okay, I'm getting back into PERL after a long hiatus. I'm using Mac OS X 10.3.9, Terminal, TextEdit to get started. I've used this before in the past. I write a simple script as described on page 8 of my beginners perl book (CGI/Perl by Diane Zak - Course Technology's Web Warrior Series). This

RE: tracking emails sent

2006-02-03 Thread DBSMITH
>[EMAIL PROTECTED] wrote: >: >: My problem is it mails once then i

RE: tracking emails sent

2006-02-03 Thread DBSMITH
>That "last;" statement makes certain of it. So, the second >e

Curses::UI scroll when "Your screen is currently too small for this application."

2006-02-03 Thread JupiterHost.Net
Hello list :) I'm currently writing a curses app that part of display a long list of check boxes. As long as the options are short enough to fit on the page it looks like this: [ ] Foo [X] Bar [ ] Baz Which is good :) But when there are more options that fit on the screen I get: Your scr

Re: extracting information from a file

2006-02-03 Thread Mazhar
Hi Rana, if the data what you need is something xxxzzz>f then you can take the entry before > by the following code $x=xxxzzz>f ($data_required,$data_notrequired)=split($x,">"). Hope the above will solve the problem. Cheers Mazhar On 2/3/06, Dhanashri Bhate

RE: tracking emails sent

2006-02-03 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : : My problem is it mails once then it will mail again about the : same string. I want it to only mail if it finds this string : but be smart enough not to email again if it happens again : within a certain time frame. You'll need to save state somehow. This script o

Re: how to run perl file from a html page

2006-02-03 Thread JupiterHost.Net
a b wrote: Hy , Hello, my scenario is have a html page in your c:\statichtmlpage.html in the section of form i've written like < form method=post action=perfile.pl> <> and a perl file that can retrieve params from statichtmlpage.html file and execute some thing at local machine i don't

Re: scope of the variable?

2006-02-03 Thread Bob Showalter
[EMAIL PROTECTED] wrote: ... My question is how to access $dbaccess variable (object) defined and initialized in test.pm within test2.pm module? If $dbaccess is delared with 'my' in test.pm, you cannot directly access it from another file. You have two basic options: 1. Provide an accessor

Re: how to run perl file from a html page

2006-02-03 Thread Xavier Noria
On Feb 3, 2006, at 14:28, a b wrote: Hy , my scenario is have a html page in your c:\statichtmlpage.html in the section of form i've written like < form method=post action=perfile.pl> <> and a perl file that can retrieve params from statichtmlpage.html file and execute some thing at l

Re: foreach woes

2006-02-03 Thread Peter Scott
On Fri, 03 Feb 2006 14:07:11 +0200, Brent Clark wrote: > I tried the following: > > $list = values %{ $xmlData->{'misc_links'}->{$linkName}}; > > Which gives me a answer of one, not the correct answer, but its answer > at least for now. Well there you are calling the values() function in scalar

Re: how to run perl file from a html page

2006-02-03 Thread a b
Hy , my scenario is have a html page in your c:\statichtmlpage.html in the section of form i've written like < form method=post action=perfile.pl> <> and a perl file that can retrieve params from statichtmlpage.html file and execute some thing at local machine i don't want to install any we

Re: foreach woes

2006-02-03 Thread Brent Clark
Paul Johnson wrote: I've not run any of your code, but: I suspect that turning on strict refs would give you the answer. 'misc_links' => { 'activities_list' => { 'activity' => 'Witbank

Re: foreach woes

2006-02-03 Thread Paul Johnson
On Fri, Feb 03, 2006 at 12:28:21PM +0200, Brent Clark wrote: > Hi all > > I have a problem whereby my foreach will not update a variable ($list) if > the hash has only one key / value. > > Below is my Data Dumper output. > I basically need to do a foreach on > $xmlData->{'misc_links'}->{'activ

Re: how to run perl file from a html page

2006-02-03 Thread Xavier Noria
On Feb 3, 2006, at 11:31, a b wrote: Hello all, i am new and want to get the params from html page and execute perl script at local machine please help me in this matter. How are you getting the HTML page in the local machine? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: how to run perl file from a html page

2006-02-03 Thread Jeff Pang
I think this is a typical CGI-developing requirement.As someone in the list has said, You could have a glance at chapter 12 of Beginning Perl for instance: http://learn.perl.org/library/beginning_perl/3145_Chap12.pdf Hope that be useful to you. -Original Message- >From: a b <[EMAIL PROT

Re: question regarding reference of a local variable

2006-02-03 Thread John W. Krahn
Pine Yan wrote: > Hi, Hello, > what happens to the memory space with the following code: > > my @full_list = (); > > if (...) { > my @tmp_list; > @tmp_list = split(...); No need for two statements there: my @tmp_list = split(...); > @full_list = (@full_list, [EMAIL PROTECTED]); > }

how to run perl file from a html page

2006-02-03 Thread a b
Hello all, i am new and want to get the params from html page and execute perl script at local machine please help me in this matter. thanks and regards, abhishek

foreach woes

2006-02-03 Thread Brent Clark
Hi all I have a problem whereby my foreach will not update a variable ($list) if the hash has only one key / value. Below is my Data Dumper output. I basically need to do a foreach on $xmlData->{'misc_links'}->{'activities_list'}->{'activity'}. Now if I have two or more elements, then its wor

Re: about the TIME_WAIT

2006-02-03 Thread Jeff Pang
hello, >From the socket faq,you can find these words below and hope that be useful for >you: 2.7. Please explain the TIME_WAIT state. Remember that TCP guarantees all data transmitted will be delivered, if at all possible. When you close a socket, the server goes into a TIME_WAIT state, just to

Re: scope of the variable?

2006-02-03 Thread Jeff Pang
I think the '$dbaccess' in your test.pm should be declared as perl's global var as 'our $dbaccess;' or 'use vars qw($dbaccess);'. Then in your test2.pm,you can access it as: use vars qw($dbaccess); print $test::dbaccess; or: use vars qw($dbaccess); *dbaccess = \$test::dbaccess; print $dbacces

Re: Sorting a hash of hashes

2006-02-03 Thread John W. Krahn
Scott Palmer wrote: > I am attempting to sort by a field in a hash within a hash and I am > having a hard time finding the right direction. I want the print out to > sort from smallest to largest in size. Any help would be greatly > appreciated. > > -- > #!

Re: How to compare hashes to find matching keys with conflicting values.

2006-02-03 Thread John Doe
Angus am Freitag, 3. Februar 2006 10.13: > Joe, > > Thank you for taking the time to explain this bit of code. I have spent > some time trying to understand the ternary operator (?:) this evening and I > think it is making more sense. In the past I have seen this operator and > moved on in favor

RE: How to compare hashes to find matching keys with conflicting values.

2006-02-03 Thread Angus
Joe, Thank you for taking the time to explain this bit of code. I have spent some time trying to understand the ternary operator (?:) this evening and I think it is making more sense. In the past I have seen this operator and moved on in favor of using if/then/else statements but I can see how i