help me

2004-10-30 Thread rocky karhe
hi there, from some days i am working for module of autoresponding mail, using IMAP. I need to find the ip address of machine from where message comes and then reply him automatically. Can anybody tell me how to find IP address of machine from where we r getting mail . thnx in advance rocky...

need help

2004-10-30 Thread rocky karhe
can anybody tell me meaning of following my $q=CGI-new(); my ($html); my %ARGS; foreach ($q-param()) { $ARGS{$_}=$q-param($_);} $ARGS{'form'} = if(defined($ARGS{'form'}) == 0); $ARGS{'action'} = if(defined($ARGS{'action'}) == 0); $ARGS{'completeurl'} = $q-self_url(); my $modeform = $ARGS{form};

help me

2004-10-30 Thread rocky karhe
hi can anybody tell me where can i get help for perl like: 1) param() 2) RMD::ForgotPass why :: is used 3) defined keyword thanx in advance rocky _ Yantras for power and success. Yantras for peace and joy.

param, ::, defined; was Re: help me

2004-10-30 Thread Chris Devers
Please use a descriptive subject line. On Sat, 30 Oct 2004, rocky karhe wrote: can anybody tell me where can i get help for perl like: 1) param() You mean the param() function from CGI.pm? See `perldoc CGI`, or

please explain a program to me, was Re: need help

2004-10-30 Thread Chris Devers
Again, please use a descriptive subject line. need help is not descriptive. On Sat, 30 Oct 2004, rocky karhe wrote: can anybody tell me meaning of following It's a Perl program. It does things in Perl. If you didn't write this, then where did you get it from? -- Chris Devers --

RE: help me

2004-10-30 Thread Murphy, Ged (Bolton)
rocky karhe wrote: i am new to php. Can u plz elaborate how to get it from headers. Is there any function to do so. This is perl, not php. I'm new also but seeing as the list is quiet I'll have a go. Are you familiar with objects? A quick search on CPAN pulled up the Mail::Folder module. This

Executing perl scripts with a perl script

2004-10-30 Thread Todd Lewis
I have serveral perl scripts that I've written seperately. Now I want to run them sequentially. I don't want to cut and paste them into the same file to be run. Makes reusablity a pain. Is there a method to do this? I've tried searching but it appears I'm not using the correct search words.

Re: Executing perl scripts with a perl script

2004-10-30 Thread Bee
As you ask this question, I assume that you don't know much about how to modualize your scripts. Please refer to : perldoc -f use perldoc -f require perldoc -f do I 'd perfer using 'use', since errors will be told at the compile time, while require is at the runtime. and, I guess you may also

beginners-uc.1099146189.monmhfodlebilkahdjjn-eliteinvisibleghost=yahoo.com@perl.org

2004-10-30 Thread invisibleghost
= invisibleghost __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help me

2004-10-30 Thread Bee
- Original Message - From: rocky karhe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 30, 2004 7:59 PM Subject: help me hi can anybody tell me where can i get help for perl like: 1) param() perldoc -m cgi 2) RMD::ForgotPass why :: is used Depends on how

RE: need help

2004-10-30 Thread Charles K. Clarkson
rocky karhe [EMAIL PROTECTED] wrote: Rocky, please use a better, more descriptive subject in the future. Everyone who comes here needs help. Your message subject should refer to the subject of your question. : can anybody tell me meaning of following : : my $q=CGI-new(); Create a new

Re: need help

2004-10-30 Thread Gunnar Hjalmarsson
Charles K. Clarkson wrote: Many people seem to have a penchant for placing the CGI object parameters inside a hash. Personally, I find this a poor practice. Isn't it rather a very natural Perl practice to store a bunch of name/value pairs in a hash? Personally I find CGI.pm's default way to access

RE: need help

2004-10-30 Thread Charles K. Clarkson
Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: : Charles K. Clarkson wrote: : : Many people seem to have a penchant for placing the CGI object : : parameters inside a hash. Personally, I find this a poor : : practice. : : Isn't it rather a very natural Perl practice to store a bunch : of

Re: Executing perl scripts with a perl script

2004-10-30 Thread Todd Lewis
I have no real working knowledge of perl. Teaching myself as I go. I know what I want to do and I think perl can do most of it, it's just finding the way. These scripts are really not module worthy. They are simple scripts, or run query, output file, read file, retrieve data based on file,

Re: need help

2004-10-30 Thread Gunnar Hjalmarsson
Charles K. Clarkson wrote: Gunnar Hjalmarsson wrote: Personally I find CGI.pm's default way to access the parameters to be clumsy. Just take the @{ [ $q-param('somename') ] } construct that is needed for here documents and other double-quotish contexts. I rarely use it that way. I prefer

RE: need help

2004-10-30 Thread Charles K. Clarkson
Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: : Charles K. Clarkson wrote: : : Gunnar Hjalmarsson wrote: : : Besides, is a file scoped CGI object better than a file : scoped hash? I always pass $q. Or if I am not changing it, I have sometimes created a new object when needed in subs. But you

Poster's subject lines.

2004-10-30 Thread adisegna
Not to be a pain in the ass but can posters please use a subject line that better describes their topic. Help me and need help type subjects usually get deleted without a second thought... Thanks AD

Re: Executing perl scripts with a perl script

2004-10-30 Thread Chris Devers
On Sat, 30 Oct 2004, Todd Lewis wrote: I have serveral perl scripts that I've written seperately. Now I want to run them sequentially. I don't want to cut and paste them into the same file to be run. Makes reusablity a pain. Is there a method to do this? I've tried searching but it appears

pattern matching

2004-10-30 Thread mk76
Hi All, I have to match patterns of the format string1string2 where the strings 1 2 can contain alphabets,numbers and spaces. The string are separated by '' sign. I wrote the following code for this. if(/([a-z]*[A-Z]*[0-9]*[\s]*)([a-z]*[A-Z]*[\s]*[0-9]*)/g) { $string1 = $1; $string2 =

Re: Poster's subject lines.

2004-10-30 Thread sentinel
[EMAIL PROTECTED] wrote: Not to be a pain in the ass but can posters please use a subject line that better describes their topic. Help me and need help type subjects usually get deleted without a second thought... I've been doing that already. Typically if someone has thought of a meaningful

Re: pattern matching

2004-10-30 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I have to match patterns of the format string1string2 where the strings 1 2 can contain alphabets,numbers and spaces. The string are separated by '' sign. I wrote the following code for this. if(/([a-z]*[A-Z]*[0-9]*[\s]*)([a-z]*[A-Z]*[\s]*[0-9]*)/g) { $string1 = $1;

formatting problem

2004-10-30 Thread Ing. Branislav Gerzo
Hi all, I have little formatting problem, we have code: sub test { $sth = $dbh-prepare_cached(SQL); INSERT INTO table (ip, port, type, create_date) VALUES (?,?,?,?) SQL $sth-execute('12.12.12.12', 80, proxy, '2002-12-12'); $sth-finish; return; } this of course doesn't work,

RE: Poster's subject lines.

2004-10-30 Thread Charles K. Clarkson
sentinel [EMAIL PROTECTED] wrote: : [EMAIL PROTECTED] wrote: : : : Not to be a pain in the ass but can posters please use a : : subject line that better describes their topic. Help me : : and need help type subjects usually get deleted without : : a second thought... : : : : : I've been doing

gzip, deflate LWP

2004-10-30 Thread Ing. Branislav Gerzo
Hi again, I'm sending request to http with: $ua-default_header('Accept-Encoding' = 'deflate, gzip, x-gzip, identity'); ofcourse, I get compressed response. How to know wich method is used and also how to decompress it. Maybe something is written in header, when server response and using right

Re: formatting problem

2004-10-30 Thread Bob Showalter
Ing. Branislav Gerzo wrote: Hi all, I have little formatting problem, we have code: sub test { $sth = $dbh-prepare_cached(SQL); INSERT INTO table (ip, port, type, create_date) VALUES (?,?,?,?) SQL $sth-execute('12.12.12.12', 80, proxy, '2002-12-12'); $sth-finish; return; } this of

RE: formatting problem

2004-10-30 Thread Charles K. Clarkson
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: : Hi all, : : I have little formatting problem, we have code: : : sub test { : $sth = $dbh-prepare_cached(SQL); : INSERT INTO table (ip, port, type, create_date) : VALUES (?,?,?,?) : SQL : $sth-execute('12.12.12.12', 80, proxy, '2002-12-12');

substr

2004-10-30 Thread mk76
Hi All, I need to copy a substring in a string which is completely out of the primary string (in terms of the offset). substr does not allow me to do so. Is there any other way in which I can do that ? Thanks, Manas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: pattern matching

2004-10-30 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi All, Hello, I have to match patterns of the format string1string2 where the strings 1 2 can contain alphabets,numbers and spaces. The string are separated by '' sign. I wrote the following code for this. if(/([a-z]*[A-Z]*[0-9]*[\s]*)([a-z]*[A-Z]*[\s]*[0-9]*)/g) {

Re: substr

2004-10-30 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi All, Hello, I need to copy a substring in a string which is completely out of the primary string (in terms of the offset). substr does not allow me to do so. Do you mean like this: $ perl -le' $_ = q/abc/; substr( $_, 20 ) = q/def/; print' substr outside of string at -e

Re: substr

2004-10-30 Thread mk76
My earlier post was not quite clear. I will explain my problem in detail here. I have a string whose length is say 5. I need to copy another string into this string but from an offset of 10. I tried using substr but this is a limitation of substr and it gave me a fatal error. Is there any