Re: Problem with loading dynamic libraries

2007-08-15 Thread Michael Peters
Artem Harutyunyan wrote: > However, > when I run the script under apache (with mod_perl) I see that > LD_LIBRARY_PATH is ignored (I mean it seems to load the libraries from > another location). How can I fix the problem ? What OS are you running? I know at least for linux LD_LIBRARY_PATH is specia

Re: Problem with loading dynamic libraries

2007-08-15 Thread Artem Harutyunyan
Hi Michael, Thank you very much for the exhaustive answer. Artem. On 8/15/07, Michael Peters <[EMAIL PROTECTED]> wrote: > > Artem Harutyunyan wrote: > > However, > > when I run the script under apache (with mod_perl) I see that > > LD_LIBRARY_PATH is ignored (I mean it seems to load the librarie

Problem with loading dynamic libraries

2007-08-15 Thread Artem Harutyunyan
Hi, I have 2 questions: 1) There is a script which uses Authen::SASL::Cyrus module. During the work the module needs to load some external dynamic libraries (.so files). To have correct libraries loaded I set LD_LIBRARY_PATH, this works when running my script with usual (command line) perl. Howev

Re: Correct way to upload a file

2007-08-15 Thread Mag Gam
Thanks Fred. The problem is, I don't have access to httpd.conf, therefore I can't run scripts like that. Is there an alternative? TIA On 8/13/07, Fred Moyer <[EMAIL PROTECTED]> wrote: > > [please cc the mod_perl list when responding] > > Mag Gam wrote: > > Fred: > > > > Thanks. Looks like I may

practical mod_perl

2007-08-15 Thread Luke Lu
Hi all Anyone who has the (chm/pdf), please give me a copy. Thanks Good luck. Luke

Class inheritance, and SUPER under mod_perl2

2007-08-15 Thread Nguyen Vu Hung
Hello all, I am quite new to Perl, mod_perl and mod_perl2 so please excuse me for my questions. It my sounds noobish. In the code below, the class XXX:YYY3 inherits Net::Cmd, IO::Socket::Inet, create an object $obj with the SUPER keyword. As far as I know, this code works well under Apache 1.3,

Re: practical mod_perl

2007-08-15 Thread Geoffrey Young
Luke Lu wrote: > Hi all > >Anyone who has the (chm/pdf), please give me a > copy. http://www.modperlbook.org/ --Geoff

Re: 答复: Class inheritance, and SUPER un der mod_perl2

2007-08-15 Thread Nguyen Vu Hung
This code didn't run. I don't think we can put an "if" clause inside $type->SUPER::new(...) The error I got when running this code is: syntax error at /XXX/YYY3.pm line 74, near "if"\nsyntax error at /XXX/YYY3.pm line 77, near "} else"\nsyntax error at /XXX/YYY3.pm line 82, near " Luke Lu さん

Re: 答复: 答复: Class inheritance, and SU PER under mod_perl2

2007-08-15 Thread Nguyen Vu Hung
Actually I did exactly what you told me yesterday and $obj was still undefined. Here is the code ( check if $obj is undefined inside foreach ) package XXX::YYY3; @ISA = qw(Net::Cmd IO::Socket::INET); sub new { my $self = shift; my $type = ref($self) || $self; my $hosts = "localhos

Re: 答复: 答复: 答复: Class inheritance, and SUPER under mod_perl2

2007-08-15 Thread Nguyen Vu Hung
Yes, it was undefined even inside foreach. You can see it above the debug lines on my code. Luke Lu さんは��きました: > Hi, > the $obj is undefined everytime? > > -邮件原件- > 发件人: Nguyen Vu Hung [mailto:[EMAIL PROTECTED] > 发送时间: 2007年8月16日 9:34 > 收件人: Luke Lu > 抄送: modperl@perl.apache.org > 主题: Re

Re: 答复: 答复: Class inheritance, and SUPER under mod_perl2

2007-08-15 Thread Joe Schaefer
Nguyen Vu Hung <[EMAIL PROTECTED]> writes: > Here is the code ( check if $obj is undefined inside foreach ) > > > package XXX::YYY3; > > @ISA = qw(Net::Cmd IO::Socket::INET); > > sub new > { > my $self = shift; > my $type = ref($self) || $self; > > my $hosts = "localhost"; > my $obj;

Re: 答复: 答复: 答复: 答复: Class inherit ance, and SUPER under mod_perl2

2007-08-15 Thread Nguyen Vu Hung
Lu, I think IO::Socket:SSL has nothing to do here because this class inherits Net::Cmd and IO::Socket::INET. The next part of the code is to connect to a POP server and get emails, therefore it has no relationship wih IO::Socket:SSL. The point maybe the word SUPER. AFAIK, "SUPER" means "super cl

Re: ??: ??: Class inheritance , and SUPER under mod_perl2

2007-08-15 Thread Nguyen Vu Hung
Joe Schaefer : Nguyen Vu Hung <[EMAIL PROTECTED]> writes: Here is the code ( check if $obj is undefined inside foreach ) package XXX::YYY3; @ISA = qw(Net::Cmd IO::Socket::INET); sub new { my $self = shift; my $type = ref($self) || $self; my $hosts = "localhost"; my $

Re: 答复: 答复: 答复: 答复: 答复: Class i nheritance, and SUPER under mod_perl2

2007-08-15 Thread Nguyen Vu Hung
I am not sure if this is the SUPER package we are looking for. Being said this, please remember that I am quite new to Perl. http://search.cpan.org/~chromatic/SUPER-1.16/lib/SUPER.pm Luke Lu さんは��きました: > Where can I get the SUPER package? I want to debug it > If you got it,pls give me a copy > >

Re: ??: ??: Class inheritance, and SUPER under mod_perl2

2007-08-15 Thread Joe Schaefer
Nguyen Vu Hung <[EMAIL PROTECTED]> writes: > foreach $h (@{$hosts}) > { > > $obj = $type->SUPER::new(PeerAddr => ($host = $h), Are you sure you want SUPER::new()? I think in your case it translates to Net::Cmd::new(), when your args suggest you want IO::Socket::INET::new(). > PeerPort => 110, #

Re: Class inheritance, and SUPER under mod_perl2

2007-08-15 Thread Perrin Harkins
On 8/15/07, Nguyen Vu Hung <[EMAIL PROTECTED]> wrote: > In the code below, the class XXX:YYY3 inherits Net::Cmd, > IO::Socket::Inet, create an object $obj with the SUPER keyword. > > As far as I know, this code works well under Apache 1.3, Perl 5.6, > mod_perl 1.3. > > But in current environment wh