Re: problem sending mail

2002-04-10 Thread Ask Bjoern Hansen
[EMAIL PROTECTED] (T3tsu0) writes: > sub send_mail { > open(MAIL,"|$mail_prog -t") || &error("unable to send mail to: > $to_name - $to_addr"); [...] > close(MAIL); you really want to put error checking on the close() too. In many cases you won't be told until then if the open fa

Re: Windows 98 - PWS and Perl

2002-04-10 Thread ChaoZ Inferno
Hi Kamali, I was encountering the same problem, till one of the gurus in this forum adviced me to change to Apache. I am using Apache 1.3.24 i think and it's working fine as a fiddle with no bugs encountered so far in my cgi adventure. U can try installing it as well, I am running it on Win 98,

How to quote my param in a single step?

2002-04-10 Thread ChaoZ Inferno
Hi, I am having a slight problem whereby I need to quote the individual params of my cgi string. I need to configure 2 steps in order to retrieve the params of my cgi-string and then quote it in ' ' my $sex = $q->param("sex_question"); $sex = qq('$sex'); print "$sex"; Result : 'male' or '

Re: Windows 98 - PWS and Perl

2002-04-10 Thread Josue Garayua
Kamali: If you installed PWS, you can see a small icon in your taskbar near to your clock. If you don't see the icon, go to start -> programs -> accesories -> Internet Tools -> Personal Web Server and run the Personal Web Server Icon. Second, don't call your cgi from your command line!!! Open your

Re: newline issue

2002-04-10 Thread Patrick Diffley
You might want to try using the input line separator system variable "$/". By default it is "\n", but you can set it to whatever you like e.g. $/ = " "; #This makes the newline character a whitespace so then $testValue1 = "a b"; might be what you want to accomplish, I'm not sure, Hope this hel

newline issue

2002-04-10 Thread Fahmawi, Yazan
Hello, I was wondering whether someone might be able to help me with the following problem: How do I replace all instances of a newline in a string in Perl with the literal value "\n" (minus quotes). For example, if I have the string $testValue1 = "a b"; how can I change it to $testValue1 =

RE: problem sending mail

2002-04-10 Thread t3tsu0
This is a function I've used in the past that works. tet Where: $mail_prog= '/usr/bin/sendmail'; sub send_mail { local($from,$to_name,$to_addr,$subject,$content) = @_; open(MAIL,"|$mail_prog -t") || &error("unable to send mail to: $to_name - $to_addr"); print MAIL

Re: problem sending mail

2002-04-10 Thread Elaine -HFB- Ashton
Aman Raheja [[EMAIL PROTECTED]] quoth: *>Hi all *>I am trying to send a mail with the following code and the last print *>statement doesn't print, ie, the mail is not sent. *>This code is called on submitting a form on the web *> *>open(MAIL, "/usr/sbin/sendmail -oi -t") || di

RE: DBD mysql

2002-04-10 Thread Steven Vargas
Probably, it's your query. Should be DBD::Mysql Also, you're using the DBI module to interface with the DBD::mysql, right? If not, download it and install it and give it a try. There should also be a Perl mailinglist for it ([EMAIL PROTECTED], or something close) that you can get help with mysql.

Re: problem sending mail

2002-04-10 Thread Aman Raheja
It didn't work either way as suggested using -t only or changing the delimiting tag with print statetent I tried to do the same on the command line and it works. I wonder what is missing here. Help is greatly appreciated Aman >From: "Aman Raheja" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EM

problem sending mail

2002-04-10 Thread Aman Raheja
Hi all I am trying to send a mail with the following code and the last print statement doesn't print, ie, the mail is not sent. This code is called on submitting a form on the web open(MAIL, "/usr/sbin/sendmail -oi -t") || die "Can't open mail"; print MAIL <"; ---

Re: Re: Tell a friend - Help!

2002-04-10 Thread Michael D. Risser
On Tuesday 09 April 2002 09:22 pm, p satheesh kumar wrote: > Dear Mr. Brain > > Thanks for your immediate response. I tried with what you have > suggested. But it is still giving error message as "can't find > string terminator "'" anywhere before EOF at friend.pl line 51". > Can you please sugges

Re: Adding comments causes fatal error -- really strange

2002-04-10 Thread MARCOS LABORDE
>>> [EMAIL PROTECTED] 04/10/02 10:49AM >>> Hello, I've encountered a really weird problem. I wrote a module a little over 1000 lines. When I've added another subroutine, I've got a "Missing right bracket error" at the end of file. After spending some time counting brackets in a dozen of lines (n

Adding comments causes fatal error -- really strange

2002-04-10 Thread perl
Hello, I've encountered a really weird problem. I wrote a module a little over 1000 lines. When I've added another subroutine, I've got a "Missing right bracket error" at the end of file. After spending some time counting brackets in a dozen of lines (nothing was missing, in fact) I've removed s

Re: Problem in retrieving param from cookie

2002-04-10 Thread Ng Yuen Soo
Thanks Carl, it's finally working! Just seems like I couldn't find your way of defining the cookie variable off the web, esp from wiley or stein, i tried using their method but I just couldn't retrieve it. Million Thanks! - Original Message - From: "Carl Franks" <[EMAIL PROTECTED]> To:

Problem in retrieving data in cookie

2002-04-10 Thread Ng Yuen Soo
Hi, Let's say if I create a cookie with $questions and $answers value pairs where $questions consists of q1, q2, q3, q4, q5, while $answers consists of a1, a2, a3, a4, a5. I have no problem in printing out every value of a cookie by using my %answers = $q->cookie("my_cookie"); if(%answers) {

Re: managing files

2002-04-10 Thread fliptop
Pedro Santos wrote: > I'm trying to build a database where users can send a description and an > image to the database. Whenever I access the database trought my a perl > script my browser should show me the description and the image. > For the description I can do this without any proble

managing files

2002-04-10 Thread Pedro Santos
Hi I'm Pedro and I'm just starting to work with MySQL and Perl. I'm trying to build a database where users can send a description and an image to the database. Whenever I access the database trought my a perl script my browser should show me the description and the image. For the descript

Re: Problem in retrieving param from cookie

2002-04-10 Thread Carl Franks
Have you tried the following? my %answers = $q->cookie("my_cookie"); print "$answers{q1} $answers{q2} $answers{q3}"; #etc... Carl > Let's say if I create a cookie with $questions and $answers value pairs > where $questions consists of q1, q2, q3, q4, q5, while $answers consists of > a1, a2, a3,

Re: Windows 98 - PWS and Perl

2002-04-10 Thread Kamali Muthukrishnan
I edited the register and mapped the .pl as well as teh .cgi extensions. Rebooted the machine. The PWS can display a HTML page. It has problems when it gets to the CGI file. I tried to do the perl -c first.cgi at the command prompt after chaning the directory my

Re: Validating form date

2002-04-10 Thread fliptop
Daniel Falkenberg wrote: > I am just playing around with forms at the moment. What I want to do is > have user enter data into form fiels then I want to validate that > entered date. So far I can do things as basic as validating if fields > contain characters and so forth. But what I want to d

Problem in retrieving param from cookie

2002-04-10 Thread ChaoZ InferNo
Hi, Let's say if I create a cookie with $questions and $answers value pairs where $questions consists of q1, q2, q3, q4, q5, while $answers consists of a1, a2, a3, a4, a5. I have no problem in printing out every value of a cookie by using my %answers = $q->cookie("my_cookie"); if(%answers)

Re: Tell a friend - Help!

2002-04-10 Thread Carl Franks
The first line of the script must start with the shebang #!/perl5/bin/MSwin32-x86 You should not have a comment above it, otherwise the operating system tries to use the program "Path to perl with shebang symbol" instead of the perl program Carl > > Thanks for your immediate response. I tried

DBD mysql

2002-04-10 Thread Bob T
WinXP... ActivePerl 5.6.. weight 180lb Thanks for the Win help( strange Territory) ... I'm a Unix guy :-) I found and installed DBD:mysql.ppm and installed the mod with a command line call per PPM.. However a ppm query * of my Win Perl install shows all my modules except DBD:mysql... Yet my