develooper Front page | perl.perl5.porters | Postings from August 2008

[perl #41572][PATCH] Subclassing CGI::Pretty dies in ->new

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
August 27, 2008 05:32
Subject:
[perl #41572][PATCH] Subclassing CGI::Pretty dies in ->new
Message ID:
20080827123225.GF75181@plum.flirble.org
Forwarded to Lincoln Stein. We'll apply it to core as an update from the
upstream CGI distribution.

Nicholas Clark

----- Forwarded message from renee.baecker@smart-websolutions.de -----

Envelope-to: nick@flirble.org
Delivery-date: Wed, 27 Aug 2008 13:25:42 +0100
Mailing-List: contact perl5-porters-help@perl.org; run by ezmlm
Delivered-To: mailing list perl5-porters@perl.org
Delivered-To: perl5-porters@perl.org
To: perl5-porters@perl.org
Subject: [perl #41572][PATCH] Subclassing CGI::Pretty dies in ->new
X-PHP-Script: rserv16.sitepush.net/poplogin/email_neu.php for 155.56.68.221
From: renee.baecker@smart-websolutions.de
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
X-Mailer: Confixx WebMail (like SquirrelMail)
Cc: perlbug-followup@perl.org
Date: Wed, 27 Aug 2008 14:25:25 +0200 (CEST)

Attached is a small patch for CGI::Pretty.

Cheers,
Renee
---

renee.baecker@smart-websolutions.de

Smart-Websolutions Andr? Windolph und Ren?e B?cker GbR
Maria-Montessori-Str. 13
64584 Biebesheim

USt.-ID: DE 228 935 695

Telefon: 01803 - 278 25 51 98 (9 cent/Minute)
E-Mail: info@smart-websolutions.de

Perl-Magazin: http://foo-magazin.de
Perl-Nachrichten: http://perl-nachrichten.de

--- Pretty.pm.orig	2005-04-07 23:40:12.000000000 +0200
+++ Pretty.pm	2008-08-27 13:14:00.000000000 +0200
@@ -176,6 +176,13 @@
 }
 sub _reset_globals { initialize_globals(); }
 
+sub import {
+   my ($package) = @_;
+   
+   no strict 'refs';
+   ${ "$package\::AutoloadClass" } = 'CGI';
+}
+
 1;
 
 =head1 NAME


----- End forwarded message -----

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About