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...
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};
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.
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
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
--
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
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.
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
=
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]
- 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
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
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
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
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,
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
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
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
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
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 =
[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
[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;
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,
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
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
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
[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');
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:
[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) {
[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
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
30 matches
Mail list logo