Re: Converting a String of bits into a binary number in perl?

2007-03-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Mar 04, 2007 at 04:43:20PM -0600, Deepak Mallya wrote: > Hi, >Can anyone tell me how do I convert a String of bits into a binary > number in Perl > > For eg:- $a="100"; I want to convert this into perl's interpretation of > binary no ie $

Re: modperl installation issues + Can't load APR.so

2007-02-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 <[EMAIL PROTECTED]> On Thu, Feb 22, 2007 at 02:19:12PM -0600, jayakrishnan iyer wrote: > Thanks for the reply. I looked that up previously and found it > installed as > a shared object in my library as a part of my apache 2.2.4 > installation. I > g

Re: modperl installation issues + Can't load APR.so

2007-02-21 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 21, 2007 at 03:47:44PM -0600, jayakrishnan iyer wrote: > hi everyone, > > I have installed apache 2.2.4 on my computer and am trying to install mod > perl 2.0.3, but have been running into some issues. > To be specific I am having issues l

Re: Apache::Session::MySQL, light/heavy proxy, wedging

2007-01-31 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jan 31, 2007 at 08:29:55AM -0500, Perrin Harkins wrote: > On 1/31/07, Todd Finney <[EMAIL PROTECTED]> wrote: > >Wouldn't throwing a > > > > return DECLINED unless $r->is_initial_req; > > > >at the top of the handler fix the problem, in

Re: Two failures in make test building mod_perl 2.0.3

2007-01-19 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jan 18, 2007 at 09:52:39PM -0800, [EMAIL PROTECTED] wrote: > The /etc/hosts file on the system where the problem occurred follows: > > # $FreeBSD: src/etc/hosts,v 1.16 2003/01/28 21:29:23 dbaker Exp $ [no trace of 127.0.0.7] Hm. Looks sane t

Re: Two failures in make test building mod_perl 2.0.3

2007-01-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jan 18, 2007 at 02:58:45PM -0500, Geoffrey Young wrote: > > > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > > > # testing : connection notes > > # expected: 127.0.0.1 > > # received: 127.0.0.7 > > not ok 1 > > this looks like it may be

Re: Redirects?

2007-01-16 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 16, 2007 at 04:45:10PM -0800, Will Fould wrote: > I have a strange issue with a particular script that sometimes (often) > generates a 302 to another script without a clear reason why. > > Oddly enough, I simply placed a few "warn('blah')"

Re: Making .pm files run.

2007-01-16 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 16, 2007 at 11:06:54AM -0800, iNetForce wrote: > > I installed Image Magick, but now im getting this error: Hi, Force just to repeat what has been said elsewhere in slightly different terms when you see this: > http# apachectl restart >

Re: Weird behaviour with strings and accents

2006-12-29 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Dec 28, 2006 at 07:18:29PM +0100, Cyril SCETBON wrote: > > > [EMAIL PROTECTED] wrote: > >-BEGIN PGP SIGNED MESSAGE- > >Hash: SHA1 > > > >On Wed, Dec 27, 2006 at 04:56:50PM +0100, Cyril SCETBON wrote: [...] > Here you can see the res

Re: Weird behaviour with strings and accents

2006-12-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Dec 27, 2006 at 04:56:50PM +0100, Cyril SCETBON wrote: > I'm using Modperl 2.0.2 with apache 2.0.55 and modperl is doing > something wrong with my string : > > my $var="à présent protégé"; > warn Dumper [$var]; > my $var="à présent protégé".$

Re: reset multiple cookies

2006-12-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Dec 09, 2006 at 02:18:09AM +0100, Marc Lambrichs wrote: > I'm trying to reset multiple cookies. However, only the last one of the > @cookies array is reset. How come? > [...] >foreach my $cookie ( @cookies ){ >$log->debug(

Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Nov 24, 2006 at 11:57:58AM +0100, D. Bolliger wrote: > [EMAIL PROTECTED] am Freitag, 24. November 2006 11:27: > > [snipped] > > Watch this: > > | [EMAIL PROTECTED]:~$ perl > > | use DB_File; > > | > > | tie my %dbh, 'DB_File', "foobar" ||

Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Nov 24, 2006 at 04:47:21PM +0800, silent wrote: > Hi all, > I need help with mod_perl: > My ENV is redhat ES4 + apache2.0.59 + mod_perl2. > > I wrote a small script: > > package myconf; > > use strict; > use warnings; > u

Re: Mod_perl and (mass) virtual hosting or a mod_vhost alternative

2006-11-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Nov 13, 2006 at 11:04:13PM +0100, Hans de Groot wrote: > Hi, > > I have been looking at the perl sections part. [...] > But would a reload of the httpd.conf kill the open sessions of visitors > of the website? I always asumed it would but ma

Re: Mod_perl and HTTP IO issue

2006-11-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Nov 08, 2006 at 09:04:36PM -0500, Sumit Shah wrote: > Thanks for pointing that out. Really silly of me. > > After correcting it, it seems that $result does not equate to 'INVALID' > even though the server returned INVALID. I can see that if I

Re: XSS evasion

2006-10-06 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Oct 06, 2006 at 05:14:47PM +0200, Clinton Gormley wrote: > > Users: [...] > > OK, now call me names :-) > > > > Neither of these options will work. Consider this scenario. > > 1) Joe Bloggs logs into my website and has an active session. >

Re: XSS evasion

2006-10-06 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Oct 06, 2006 at 04:35:22PM +0200, Clinton Gormley wrote: > I'm testing my current site for XSS vulnerabilities, and I came across > this one on: > > http://ha.ckers.org/xss.html [...] > Now this is an interesting one... How would you avoid th

modperl@perl.apache.org

2006-09-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Sep 10, 2006 at 03:19:57PM -0400, Scott Kaplan wrote: > In one of my perl scripts, I have the following line: > > use Net::SSLeay qw(post_https make_headers make_form); > > The interpreter accepts the top line just fine... so Net::SSLeay see

Re: Testing a Handler

2006-09-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Sep 09, 2006 at 10:55:57PM -0600, Joshua Shapiro wrote: > Hello, > > I have inherited an application that makes use of mod_perl. I have > never used it before and am currently trying to understand it. I am > trying to setup a simple CLI util

Re: Request for Information

2006-09-01 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Sep 01, 2006 at 04:35:38PM -0400, dhaval gada wrote: > Hi, > I am not using any references to subroutines in the session data. > > And if some objects are implemented in Perl as references to subroutines, > and > some data structures include

Re: [offtopic] perl newbie frustrated

2006-07-18 Thread tomas
On Sat, Jul 15, 2006 at 02:12:34AM -0400, Jonathan Vanasco wrote: > > On Jul 13, 2006, at 7:41 PM, Philip M. Gollucci wrote: [...] > I thought read once that within an array declaration, [] is a real > array and not a reference-- or did i dream that up and have been > dealing with anonymous ar

Re: mp2: utf-8 and uc() under modperl2

2006-05-27 Thread tomas
On Fri, May 26, 2006 at 11:44:29PM -0700, Jason Rhinelander wrote: > [EMAIL PROTECTED] wrote: [...] > It is, because in Perl stdin, stdout, and stderr are aliases for STDIN, > STDOUT, and STDERR [...] You're right. Sorry for the noise. Regards -- tomás signature.asc Description: Digital signat

Re: mp2: utf-8 and uc() under modperl2

2006-05-26 Thread tomas
On Fri, May 26, 2006 at 02:56:17PM -0700, Jason Rhinelander wrote: > Gunnar Koppel wrote: [...] > > I have little problem with UTF-8 under modperl2. I made such little > > script for testing: [...] > > binmode stdin, ":utf8"; > > binmode stdout, ":utf8"; [...] > binmode STDOUT, ":utf8"; > > makes

Re: Nested Interpolation

2006-03-31 Thread Tomas Zerolo
w to capture the syntax error in a case > like this? You mean something like... my %names = (Bob => 'Robert Brower'); my $caption = 'Name: $names{Bob)'; print eval "qq|$caption|"; die $@ if $@ giving: syntax error at (eval 1) line 1, near "B

Database transaction across multiple web requests

2006-03-31 Thread Tomas Zerolo
h to say on variants (b) and (c), I guess. The usual trade-offs, (b) generating more database activity and (c) being potentially a memory killer with the usual optimization tricks. Thanks for any pointers, since I have been googling in vain for a while. Regards -- tomas signature.asc Description: Digital signature

Re: ld.so: Undefined symbol "_perl_get_sv"

2006-02-01 Thread Tomas Zerolo
h. I'm not an Openbsd guru, but maybe ldd tells you what's on: ldd /your/path/to/mod_perl.so will tell you what your mod_perl wants to link against and what it finds. Compare to your expectations. HTH -- tomas signature.asc Description: Digital signature

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tomas Zerolo
out that. Thanks again -- tomas signature.asc Description: Digital signature

Re: Several versions of a modperl handler in a server instance

2006-01-26 Thread Tomas Zerolo
On Thu, Jan 26, 2006 at 11:27:44AM +0100, Tom Schindl wrote: [...] > In mp2: > - use different VHost with different Inc-paths > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlOptions_ Wow. My imagination was too small to come up with that. Thanks a bucket!

Several versions of a modperl handler in a server instance

2006-01-26 Thread Tomas Zerolo
I don't know whether (a) is possible. Maybe some of you has any ideas. This would be the preferred path because the things would get tested as modperl. As a next alternative I'd try to go with (c). Thoughts? Thanks -- tomas signature.asc Description: Digital signature