Re: use perl to inquire database and send email automatically

2004-09-22 Thread Chris Devers
On Thu, 23 Sep 2004, Franklin wrote: > I am in China. Can you imagine an engineer from developing country to > hire an expert in developed country? :) Can you imagine a total stranger doing all your work for nothing? Wait, don't answer that, I think I know the answer... :) > I am planning to us

Re: use perl to inquire database and send email automatically

2004-09-22 Thread Franklin
HI,guy: I am in China. Can you imagine an engineer from developing country to hire an expert in developed country?:) I am planning to use DBD:mysql to inquire database and send the result automatically. I will update my process and please kindly give me some valuable suggestion in the future. On

SSI from script

2004-09-22 Thread Ramon Chavez
Hi everyone. I'm trying to call a SSI from a page generated by a Perl script. Obviously the SSI can't be called because it is not an HTML file. But if I use the .htaccess parsing method, a with .shtml, (AddHandler server-parsed .pl) I got all the code of my script listed. This SSI will call an

RE: calling Perl Script from JSP?

2004-09-22 Thread Drue Reeves
Chris, Thank you. This is starting to make more sense now. I may have more questions but, I'll go do some homework first. I'll start with the book you mentioned. Thanks, Drue Chris Devers <[EMAIL PROTECTED]> wrote: First of all, "Perl" is the language, "perl" is the program that runs progr

Re: Run a process in the background

2004-09-22 Thread John W. Krahn
Errin Larsen wrote: Hi Perlers, Hello, I know that questions like this get asked all the time, but I guess it's just my turn to ask 'em! I need to kick of some processes in my script. However, the script needs to kick them all off at once and then stick around to do some other things. I'm kinda n

Re: Perl and DHCP

2004-09-22 Thread Wiggins d Anconia
> Hi, > I have Perl program in which I have if condition as "if( -e $hostname) { > # do something} else { # do something else}" > I use Sys::Hostname::hostname() to get the host name. > If my Windows machine is DHCP enabled ,the if condition turns out be > false and vice versa for Static IP addre

RE: Inline Edit -- File name

2004-09-22 Thread RArul
Thanks for the help. This works: perl -pe '$_ = "$ARGV \t $_"' trace.txt This doesn't: perl -pe '$_ = "$ARGV[0] \t $_"' trace.txt perldoc perlvar says that $ARGV must be used for command-line processors and in array-context as @ARGV for running scripts. Thanks, once again. -Original M

RE: Inline Edit -- File name

2004-09-22 Thread RArul
Well, I did try that with $ARGV[0], but to no avail. Yes, I had posted a POC. Here is the true code that would not print the file-name. What am I doing wrong? perl -pe '$_ = "$ARGV[0] \t $_"' trace.txt -Original Message- From: Jose Alves de Castro [mailto:[EMAIL PROTECTED] Sent: Wedne

Re: file upload with Perl

2004-09-22 Thread Wiggins d Anconia
> > > I have few questions regarding file uplad: > > 1) I am try do next tutorial: http://www.redantigua.com/upload.html > > but what is "use lib qw(/home/redanti/perl);" here: > http://www.redantigua.com/UploadApp.txt > > perldoc lib C is a pragma (similar to a module, but affects the perl

Re: Run a process in the background

2004-09-22 Thread Wiggins d Anconia
> Hi Perlers, > > I know that questions like this get asked all the time, but I guess > it's just my turn to ask 'em! > > I need to kick of some processes in my script. However, the script > needs to kick them all off at once and then stick around to do some > other things. I'm kinda new to Per

file upload with Perl

2004-09-22 Thread Maxipoint Rep Office
I have few questions regarding file uplad: 1) I am try do next tutorial: http://www.redantigua.com/upload.html but what is "use lib qw(/home/redanti/perl);" here: http://www.redantigua.com/UploadApp.txt 2) What is my path instead: '/home/redanti/perl' 3) what is modul lib? Is it above li

Perl and DHCP

2004-09-22 Thread Prasanna Kothari
Hi, I have Perl program in which I have if condition as "if( -e $hostname) { # do something} else { # do something else}" I use Sys::Hostname::hostname() to get the host name. If my Windows machine is DHCP enabled ,the if condition turns out be false and vice versa for Static IP address. Any poi

Re: how to change values of @INC

2004-09-22 Thread Johannes Lichtenberger
Bernd Mueller wrote: I am trying to run a perl script under apache2 and the error_log tells me something about: "Can't locate SiteDefs.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.5/x86_64-linux etc ...) at /usr/local/ensembl/perl/multi/unisearch line24., referer: http://localhost/ ..

Run a process in the background

2004-09-22 Thread Errin Larsen
Hi Perlers, I know that questions like this get asked all the time, but I guess it's just my turn to ask 'em! I need to kick of some processes in my script. However, the script needs to kick them all off at once and then stick around to do some other things. I'm kinda new to Perl, but in my OS'

Re: Inline Edit -- File name

2004-09-22 Thread Jose Alves de Castro
On Wed, 2004-09-22 at 15:24, [EMAIL PROTECTED] wrote: > How will I get the file name when I do an inline edit like this: > > perl -i.orig -pe '$_ = $_' filename That won't compile, but I believe you're posting something like a proof of concept rather then code... If I get this correctly, you're

Re: Mime Lite attachments

2004-09-22 Thread DBSMITH
This works great, thnaks! I was missing the $msg->attach( Type => 'image/gif', Id => 'InternalFileNameA.gif', Path => 'FileNameA.gif' ); block. Prior I was doing this in one full swoop. derek "Josimar Nunes de Oliveira" <[EMAIL PROTECTED]> 09/21/2004 01:10 PM

Inline Edit -- File name

2004-09-22 Thread RArul
How will I get the file name when I do an inline edit like this: perl -i.orig -pe '$_ = $_' filename How would I get the file name in ? Thanks, Rex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: use perl to inquire database and send email automatically

2004-09-22 Thread JupiterHost.Net
Franklin wrote: Hello: Hello, I have a database which refresh every minutes according to the information on Internet and I provide users to predefine some condition. When these conditions are matched, my sytem will send them email to inform them. How can I use perl to realize these functionalities

Re: how to change values of @INC

2004-09-22 Thread JupiterHost.Net
Bernd Mueller wrote: Hello, Hello, I am trying to run a perl script under apache2 and the error_log tells me something about: "Can't locate SiteDefs.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.5/x86_64-linux etc ...) at /usr/local/ensembl/perl/multi/unisearch line24., referer: http:/

Re: starting position of RE match

2004-09-22 Thread Jenda Krynicky
From: Robert Citek <[EMAIL PROTECTED]> > On Tuesday, Sep 21, 2004, at 17:17 US/Central, Jenda Krynicky wrote: > > > > How about this: > > $s = "sasas dfgfgh asasas asedsase"; > > while ($s =~ /\G.*?(?=sas)./g) { > > print "pos=",pos($s)-1, " = '",substr($s,pos($s)-1,3),"'\n"

Re: easy module installation

2004-09-22 Thread ivan
Chris Devers wrote: On Wed, 22 Sep 2004, ivan wrote: Exists not any easy way to install this DateTime::HiRes with all modules it depend from? There is a tool called "the CPAN shell" which automates the process of finding modules, downloading & unpacking them, checking dependencies, then

RE: :Oracle installation Woes

2004-09-22 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Ok here is the deal, our admin is trying to install DBD::Oracle for > me to access one of our affiliates databases. The oracle "instant > basic client" and "sqlplus" has been installed as well as > GetOpt::Long. > > The installations all went well except for DBD::Oracle

Re: FW: Overriding a method (HTTP::Daemon::product_tokens)

2004-09-22 Thread Jenda Krynicky
From: "OK News" <[EMAIL PROTECTED]> > Hello, > I've read a lot of docs today and searched the web high and low but > cannot get past this problem. > > I'm trying to override the product_tokens value in HTTPD::Daemon. I'm > creating a webserver and would like the 'Server' header t

RE: [Perl Downloads for Windows OS: IA64 and AMD64]

2004-09-22 Thread Chris Devers
On Wed, 22 Sep 2004 [EMAIL PROTECTED] wrote: > Yeah I have tried that before I sent the mail to the perl group. That would have been worth mentioning then :-) > I am not able install perl using the package available in Active > State. The package that is available there is only for X86 Platform

RE: [Perl Downloads for Windows OS: IA64 and AMD64]

2004-09-22 Thread suresh.pasupula
Hi Chris, Thanks for the prompt response. Yeah I have tried that before I sent the mail to the perl group. I am not able install perl using the package available in Active State. The package that is available there is only for X86 Platform. It does not allow you to install in 64 bit Platforms.

Re: use perl to inquire database and send email automatically

2004-09-22 Thread Chris Devers
On Wed, 22 Sep 2004, Franklin wrote: > I have a database which refresh every minutes according to the > information on Internet and I provide users to predefine some > condition. When these conditions are matched, my sytem will send them > email to inform them. How can I use perl to realize the

Re: easy module installation

2004-09-22 Thread Chris Devers
On Wed, 22 Sep 2004, ivan wrote: > Exists not any easy way to install this DateTime::HiRes with all > modules it depend from? There is a tool called "the CPAN shell" which automates the process of finding modules, downloading & unpacking them, checking dependencies, then building, testing, and

Re: [Perl Downloads for Windows OS: IA64 and AMD64]

2004-09-22 Thread Chris Devers
On Wed, 22 Sep 2004 [EMAIL PROTECTED] wrote: > I am in need of PERL for Windows OS for IA64 and AMD64 bit Machines. Can > anyone of you let me know where I can get the links for downloading? ActivePerl is the standard version of Perl for Windows -- searching Google for "perl windows" brings thei

Encrypting an in script password and wxperl

2004-09-22 Thread Gavin Henry
Dear all, My next program is to help out my wife. It will resize some jpg's, upload them via ftp to a website and email her the links of where they are. She will use these for ebay listings. I also want a wee pop up box to ask for the file or directory of the pictures. I might have two version of

RE: how to change values of @INC

2004-09-22 Thread Thomas Bätzler
Bernd Mueller <[EMAIL PROTECTED]> asked: > Would someone be so nice to explain me how i change the > values in @INC, because i know where to find this SiteDefs.pm. You could use the "use lib" pragma, like use lib qw(/path/to/my/modules); HTH, Thomas -- To unsubscribe, e-mail: [EMAIL

Antwort: use perl to inquire database and send email automatically

2004-09-22 Thread Manfred . Beilfuss
Franklin <[EMAIL PROTECTED]An: [EMAIL PROTEC

RE: how to change values of @INC

2004-09-22 Thread Raymond Raj
you can add new search path using use lib 'path List'; for delete no lib 'path list'; Raymond -Original Message- From: Bernd Mueller [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 8:04 PM To: [EMAIL PROTECTED] Subject: how to change values of @INC Hello, I am tr

use perl to inquire database and send email automatically

2004-09-22 Thread Franklin
Hello: I have a database which refresh every minutes according to the information on Internet and I provide users to predefine some condition. When these conditions are matched, my sytem will send them email to inform them. How can I use perl to realize these functionalities? Thank you very much

use perl to inquire database and send email automatically

2004-09-22 Thread Franklin
Hello: I have a database which refresh every minutes according to the information on Internet and I provide users to predefine some condition. When these conditions are matched, my sytem will send them email to inform them. How can I use perl to realize these functionalities? Thank you very much

FW: Overriding a method (HTTP::Daemon::product_tokens)

2004-09-22 Thread OK News
Hello, This is my 2nd request on the below issue. I'm hoping someone out there can help me out or point me in the right direction. I'm trying to learn how to override a method so I can give my value rather than the one the libwww package defaults to (see below). Any help appreciated. Thanks, ~jerr

how to change values of @INC

2004-09-22 Thread Bernd Mueller
Hello, I am trying to run a perl script under apache2 and the error_log tells me something about: "Can't locate SiteDefs.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.5/x86_64-linux etc ...) at /usr/local/ensembl/perl/multi/unisearch line24., referer: http://localhost/ ... BEGIN failed-

easy module installation

2004-09-22 Thread ivan
Hi , Sorry but I never was used perl and do not know it. Also I am not planing to use perl as language. I need to have perl installed for spam assassin ans especialy I need to have perl with this modules installed: DateTime::HiRes. I am using a old RedHat 7.3 with standart install. It have perl 5