Re: Changing browser URL based on condition

2011-07-11 Thread Ronald J Kimball
On Mon, Jul 11, 2011 at 11:48:09AM -0700, Jerry Pereira wrote: > I would like to know if there is a way to change the URL displayed on > browser without using Redirect option. The URL visible on client browser > must be based on some condition that is evaluated in my mod_perl handler. Imagine if

Re: Zip on the fly problem

2010-01-12 Thread Ronald J Kimball
On Tue, Jan 12, 2010 at 10:11:04PM -0500, Scott Gifford wrote: > On Tue, Jan 12, 2010 at 7:49 AM, Thomas den Braber wrote: > [ ... ] > > > The error is: 'IO error: seeking to rewrite local header : Invalid > > argument' > > > > That error means that after writing something to the ZIP archive, it

Re: choose a template

2009-06-18 Thread Ronald J Kimball
On Thu, Jun 18, 2009 at 11:37:06AM +0800, practicalp...@gmail.com wrote: > Here, aren't shopcart.nitems and shopcart.contents method calling of > an object like? > So I was thinking designers will be confused on them. JavaScript has objects, and also uses dot syntax for accessing object properties

Re: Strange message in web page

2008-07-11 Thread Ronald J Kimball
On Sat, Jul 12, 2008 at 12:10:52AM +0900, Raymond Wan wrote: > > Hi John, > > I see...I didn't know it was possible to print anything before > headers... I am not printing that statement, as far as I know, but > maybe a library I am using is. I will look into it... > > So, the part after "HT

Re: Replacement for CGI.pm escape and unescape

2007-06-07 Thread Ronald J Kimball
On Thu, Jun 07, 2007 at 10:32:54AM -0400, Michael Peters wrote: > Jonathan Vanasco wrote: > > > I use URI::Escape > > > > http://search.cpan.org/~gaas/URI-1.35/URI/Escape.pm > > > > its small, and comes in the std perl distro > > Good for URI escaping, but that's not the same thing as HTML

Re: mp 1.99_12: my() var retains value in subroutine, ideas?

2006-05-18 Thread Ronald J Kimball
On Thu, May 18, 2006 at 02:49:54PM -0400, Perrin Harkins wrote: > On Thu, 2006-05-18 at 14:38 -0400, Phil Lobbes wrote: > > mod_perl-1.99_12-2 > > Ouch! Known bugs! Upgrade as soon as you can. > > > my $sub_rec = $app->get_subscriber_rec($custid) if($custid); > > my $uid_int = $sub_

Re: Nested Interpolation

2006-03-31 Thread Ronald J Kimball
On Fri, Mar 31, 2006 at 07:05:41AM -0800, Steve Thames wrote: > On Fri, 31 Mar 2006 16:33:56 +0200, [EMAIL PROTECTED] (Tomas Zerolo) > wrote: > > > >You mean something like... > > > > my %names = (Bob => 'Robert Brower'); > > my $caption = 'Name: $names{Bob)'; > > print eval "qq|$caption|"; > >

Re: TIE

2006-02-23 Thread Ronald J Kimball
On Thu, Feb 23, 2006 at 10:27:35AM -0500, Mark Galbreath wrote: > looks way cool - thx Chris. Does libgdbm come with perl distros? I > notice the man page is already on my RH Enterprise 4 client. The reason > I ask is that it is very painful to get the government to change anything > on a server

Re: find all uninitialized variables?

2006-02-22 Thread Ronald J Kimball
On Wed, Feb 22, 2006 at 03:47:45PM -0800, Ryan Gies wrote: > I've been frustrated with the "Use of uninitialized value" warning > myself, and was hoping someone could shed some light on it as well. > Point being, this will issue the warning: > > #!/usr/bin/perl -Tw > sub max { return $_[

Re: modperl not recognizing array reference

2006-01-12 Thread Ronald J Kimball
On Thu, Jan 12, 2006 at 11:09:32AM -0800, Michael Greenish wrote: > sub resizeImgs { > my $self = shift; > foreach my $file( @$self->{resize_list} ) { > ... > > I get the following error: > > Not an ARRAY reference at > /http/greanie/perl-lib/Ishare/Classes/ImageClass.pm > line 193. @$s

IO::Select->new() causes error

2005-08-30 Thread Ronald J Kimball
I'm getting the following error from a mod_perl script: [Tue Aug 30 11:27:52 2005] [error] Can't call method "new" without a package or object reference at /usr/lib/perl5/site_perl/5.005/i686-linux/Net/DNS/Resolver/Base.pm line 635. Line 635 of Base.pm is: my $sel = IO::Select->new($sock); I'v