On Tue, 31 May 2005, Mark Stosberg wrote:
Unless there is other feedback soon, I'm inclined to release this as
CGI::App 4.0, pending my own final review.
A few comments:
- I think add_callback() is complex enough to benefit from named
params rather than positional ones. Ex:
Hello all. Does anyone know why Apache (v1.3.33) is escaping newlines
and tabs in my error logs? I'm seeing stuff like:
[Thu Jun 2 18:54:18 2005] [error] Error executing run mode 'process':
Unable to find message named 'city_missing' in messages.conf. at
On Fri, 3 Jun 2005, Michael Peters wrote:
It's a fairly recent change to apache since some characters could cause
problems for some text viewers thus creating a security hole (if your
text reader isnt smart enough).
You can turn it off by building apache like so:
On Wed, 1 Jun 2005, Paul Simon wrote:
The HTML::Template doc says to use __FIRST__,
__LAST__, __INNER__, __ODD__ as the loop context vars.
They did not work for me until I used the
(undocumented) lower case __first__, __last__ etc.
I'm guessing because I have case_sensitive set to true
On Thu, 19 May 2005, Jason Purdy wrote:
So instead of widening the people table to support these fields
(and having to alter the table every time), I'm thinking of
developing a datapoint type of system, where you'd have one table of
datapoints:
This is a bad idea, but it's also a very common
On Thu, 19 May 2005, Jason Purdy wrote:
So you'd recommend just widening the table, then?
Possibly. I don't really know very much about what your boss is
asking for. If he's really just asking for new scalar properties that
which will be used by all (or most) people then I'd add them to the
On Mon, 16 May 2005 [EMAIL PROTECTED] wrote:
This may not be strictly a CGI::Application question, but I
thought I'd ask here... this is my first attempt at using this
(and it appears *very* useful!). I may not be grokking
something about perl OOP.
For a newbie you're getting very fancy
On Mon, 9 May 2005, Igor Chudov wrote:
I would like to at least have a log that lists pid,
page requested, parameters, starting memory and memory
after the request was processed. O rsome other ideas
like that. Any thoughts?
Check out GTop.pm. You should be able to write a LogHandler which
On Thu, 5 May 2005, Michael G Schwern wrote:
perl Makefile.PL INSTALLMAN3DIR=' ' INSTALLMAN1DIR=' '
Thanks, that worked great. Idiot that I am, I saw that in the FAQ but
assumed it would only inhibit installation and not building of man
pages.
-sam
On Fri, 22 Apr 2005, RA Jones wrote:
It concerns the Perl interpolate bug, but at a much smaller file
size than the 32kb quoted value.
What is the Perl interpolate bug?
Does anyone know how to fix this, as variable interpolation is one of the
reasons I use TT in place of HTML::Template.
On Wed, 13 Apr 2005, Jonathan Lang wrote:
How difficult would it be to implement an alternative to the existing
looping technique, where the values to be looped through are passed to the
template via a bunch of lists instead of a list of hashes?
Trivial. Create a sub-class which uses
On Tue, 12 Apr 2005, Paul Johnson wrote:
I would do it in the same way as if this had nothing to do with tests.
That is, abstract away the common code into a module, which can also
live under t/
That would be a lot of work in this case. I found an easier
solution. In tweek-then-foo.t:
{
Hello all. I've got a test I want to write, but I don't know to write
it (easily). I've got a test script, call it foo.t which uses
Test::More and runs under Test::Harness. Now I want to make a new
test script tweek-then-foo.t which tweeks the system and then ensures
that foo.t still passes.
On Tue, 12 Apr 2005, Paul Johnson wrote:
I would do it in the same way as if this had nothing to do with tests.
That is, abstract away the common code into a module, which can also
live under t/
That would be a lot of work in this case. I found an easier
solution. In tweek-then-foo.t:
{
On Tue, 22 Mar 2005, Geoffrey G. Hankerson wrote:
1. It seems I am reinventing the wheel. Krang in particular seems it
may be a good fit, but I haven't access to MySQL or mod-Perl. Can I
run Krang via CGI interface and SQLite?
No, you can't. Krang would be nearly unusable at any reasonable
On Sat, 5 Mar 2005 [EMAIL PROTECTED] wrote:
Data Grid PossiblitiesI am trying to obtain a data grid control for
my website. The data grid will be used to do quick sorts and
filters. I am not sure if there anything out there that is used with
Perl or some other solution. Javascript,.Net,etc..
On Thu, 3 Mar 2005, Cory Trese wrote:
My major questions are:
1. How does a sub-class of HTML::Template construct itself? Should I
over-ride 'new( )' or use something like 'make_new( )' to wrap 'new( )'
or 'SUPER::new( )'.
package HTML::Template::Awesomer;
use base 'HTML::Template';
On Fri, 4 Mar 2005, [Windows-1251] Ãîðüêèé Þðèé wrote:
then $template-param('some_param') should be equal to 'value1'
($query appears _earlier_ in associate)
but the fact is that $template-param('some_param') is equal to
'value2'
am I mistaken?
Sounds like a bug to me. I'll
On Tue, 1 Mar 2005, Robert Ferney wrote:
I envision something like
TMPL_SCOPE NAME=other
div style=color:TMPL_VAR color;TMPL_VAR name=bar/div
/TMPL_SCOPE
this would be a slight variation on the TMPL_LOOP with the main
difference being that there is only one of them, rather than a list
On Mon, 28 Feb 2005, Halley, Edward D. wrote:
I administer my Fedora machines by RPM packages, which works for most
applications but can get to be a hassle with all the diverse modules of
Perl and CPAN. I don't like to use CPAN's own installer, as it makes
it much more difficult to reproduce
On Sat, 26 Feb 2005, James Keenan wrote:
But the other is IPC::ShareLite (v0.06 or later)
(http://search.cpan.org/~maurice/IPC-ShareLite-0.09/). This module has XS
code (there be goblins). My attempt to install it on Darwin failed. I can't
say why, but perhaps this quotation from the
On Fri, 25 Feb 2005, Thomas Gutzler wrote:
it looks a bit dodgy to me, that
TMPL_IF EXPR=(foo eq 'bar') || (foo eq 'bar2')
works well but
TMPL_IF EXPR=(foo eq 'bar') || (foo eq 'bar2') || (foo eq 'bar3')
has to be written as
TMPL_IF EXPR=((foo eq 'bar') || (foo eq 'bar2')) || (foo eq
On Tue, 22 Feb 2005, Jonathan Lang wrote:
Could HTML::TEMPLATE be reworked to allow for a more XML-friendly syntax?
Sure. Check out the filter option to new(). You can easily add
support for almost any syntax you can imagine!
-sam
---
SF
On Fri, 18 Feb 2005, Richard Chen wrote:
Most importantly, after the server process is shutdown and dprofpp
is applied to the tmon.out file, it always complains about garbled profile.
The -F option for dprofpp does not help. So basically I cannot use any data
inside the tmon.out
On Fri, 18 Feb 2005, Geoffrey Young wrote:
sam is the real expert here, so I would follow his advice more than mine :)
That said, most of the new code in CVS is Geoff's. So don't blame me
if it roasts your cat. ;)
-sam
On Fri, 11 Feb 2005, Scottsweep wrote:
I want to propose the following PATCH to
HTML::Template. This would allow objects to be
associated without the need to define a param method
(all public methods can be TMPL_VARs).
This seems like a reasonable thing to want, but I think it would be
On Fri, 11 Feb 2005, Scottsweep wrote:
I'm working from the standpoint of not making associate any more
complex, actually less so from the end user standpoint.
From the standpoint of the maintainer it definitely looks more
complex.
The thought of instantiating another object to do what can
On Fri, 11 Feb 2005, Matt Myhre wrote:
Is there a way to pass the values (i.e. in a hash) from mode 2 to mode 3
without creating form fields for each one?
Sessions will work, but if you have no other need for session data
then they're a pretty heavy solution. An easier alternative is to
just
On Fri, 14 Jan 2005, Thomas Gutzler wrote
TMPL_IF NAME=FOOfoo/TMPL_IF
That should work fine now.
TMPL_IF NAME=FOO OR NAME=BARfoo or bar/TMPL_IF
Use HTML::Template::Expr and write it:
TMPL_IF EXPR=FOO || BARfoo or bar/TMPL_IF
-sam
---
On Wed, 12 Jan 2005, Patrick Humpal wrote:
I have two standard templates that all my pages use: headers.shtml
and footers.shtml. However, it seems as if one of my CGI files is
reading the headers.shtml file from an older cached version while my
other CGI file is reading the the more recent
On Tue, 11 Jan 2005, Mathew Robertson wrote:
I respect Sam's opinion on what should and shouldn't go into H::T,
although I wouldn't consider some of the enhancements feature
creep (ie I think not having TMPL_ELSIF would mean that a feature
is missing) - I thank him for producing a very use
On Fri, 7 Jan 2005, CUMMING, Joe, FM wrote:
The one place which HTML::Template frustrated me was it's non-support of
CDBI. After, all cdbi objects are hashes under the covers and cdbi iterators
are arrays, why can't I then pass them to HTML::Template in the way you
would expect?
Because no
On Wed, 5 Jan 2005, Keith Jackson wrote:
Your version has some nice features that I could use, especially the
recursive HTML::Template invocation. Is there a reason why Sam has
not included your mods into the CPAN version?
The discussion of these changes is available in the mailing-list
On Thu, 23 Dec 2004, Rafael Garcia-Suarez wrote:
Thanks, applied to bleadperl as change #23671.
Great, thanks. I guess it needs to go into the CPAN distribution too.
Ilya, you there?
-sam
I've fixed the bugs I found in Data::Dumper's Freezer implementation.
The attached patch makes the following changes:
- The XS implementation no longer takes the return value from the
freeze method as the object to freeze. This fixes the seg-fault
when the object returns a
I was playing with the Freezer option in Data::Dumper (v2.121, Perl
v5.8.5) and I found some problems. Here's a script which seg-faults:
#!/usr/bin/perl -w
use Data::Dumper;
$Data::Dumper::Freezer = 'freeze';
my $foo = A-new(foo);
print Dumper($foo);
package A;
On Fri, 3 Dec 2004, Jason Purdy wrote:
1) Class::DBI Integration
I'm just starting to pick up CDBI (I know, I'm late to the party ;)) and it's
kind of frustrating to get the data into the template. Or it could be made
easier. I'm not sure if we're talking Plugin or an update to the core,
On Thu, 2 Dec 2004, Chris Brown wrote:
Right now I'm running Apache 1.3.31 with mod_perl 1.29. Perl is 5.8.3 on
Fedora FC1
Well, I don't know anything about your specific problem but judging by
the lack of responses neither does anyone else. So here's what I'd
do:
- Download the latest
On Fri, 26 Nov 2004 [EMAIL PROTECTED] wrote:
XML-RPC is a standalone system (except for the Java-Apache extension). If
you need to run your webservices system on port 80, for firewalling issues
for instance, you can't also run Apache. That's not ideal. With
mod_perlservice, you can host RPC
On Wed, 24 Nov 2004, Perrin Harkins wrote:
Did everyone see this on perl.com today?
http://www.perl.com/pub/a/2004/11/18/mod_perlservice.html
I just skimmed it quickly, but I can't understand why this is not just a
simple mod_perl module, or even what it solves that XML-RPC didn't. On
On Thu, 18 Nov 2004, Michael Peters wrote:
As far as I know, vanilla cgi should work just fine under apache2.
Mostly, yes. But some defaults are different, which can produce
maddening results:
http://use.perl.org/~samtregar/journal/11882
Now, that was more than a year ago, so maybe this is
On Mon, 8 Nov 2004, Martin Moss wrote:
I'm looking into ways of uniquely identifying a
computer.
Intel tried to implement this a while back with a unique ID in the
CPU. The public was not ammused. If you do find a way, please tell
us so we can find a workaround.
What I wish to do is
On Fri, 5 Nov 2004 [EMAIL PROTECTED] wrote:
t/02yaml# No tests run!
dubious
Test returned status 255 (wstat 65280, 0xff00)
Ah, right. I meant to fix this to fail more obviously. The problem
is that you have a broken XML::SAX install which is reporting no
available SAX parsers
On Fri, 5 Nov 2004, David Wheeler wrote:
$ perl -MData::Dumper -MXML::SAX -e 'print Dumper(XML::SAX-parsers)'
could not find ParserDetails.ini in
/usr/local/lib/perl5/site_perl/5.8.0/XML/SAX
$VAR1 = [];
Yup, that's a broken XML::SAX install. At the very least
XML::SAX::PurePerl should be
On Wed, 3 Nov 2004, Bill Nixon wrote:
In my template, I'd like to have something like:
TMPL_VAR NAME=QUERY VALUE=SELECT col1, col2 FROM table
Why would you want to do this? Are you really expecting your HTML
designers to know SQL?
-sam
On Fri, 29 Oct 2004, Peter Valdemar Mørch wrote:
I use gettext, and so I've created this filter:
my $gettextFilterSub = sub {
my ($text_ref) = @_;
$$text_ref =~
s/gettext\(\([^\]*)\\)/gettext($1)/ge; # To satisify xgettext:
};
You could also use HTML::Template::Expr and setup a
On Tue, 19 Oct 2004, Jonathan Mangin wrote:
$html .= qq|bunch of HTML|;
return $html;
I'm guessing $self-header_props does not add anything to what's
being returned. How, where or when can, or should, I add headers
to $html?
You guessed wrong. $self-header_props sets the HTTP headers
On Mon, 18 Oct 2004, Robert wrote:
I was wondering if there is a book in the making for CGI-Application?
The last chapter of my book, Writing Perl Modules for CPAN, is about
CGI::Application. However, you'll probably learn as much or more just
by reading the module docs.
-sam
On Sat, 16 Oct 2004, Justin Mason wrote:
12612KB of 20856KB -- 60% shared. in my opinion, that should be higher,
I'm not sure. You said you've used Devel::Size to determine that
there is 700k of data that you know should be read-only. How do you
go from that to being sure that you should
On Wed, 22 Sep 2004, Mark Stosberg wrote:
- Added Plug-in related documentation. (Mark Stosberg)
I see you're doing this a lot in the POD:
LCGI:::Application::Plugin::ValidateRM
Unfortunately pod2man will render that as:
the CGI:::Application::Plugin::ValidateRM manpage
Presumably you
On Wed, 1 Sep 2004, Fred Condo wrote:
I've attached the simple test template and script to this message.
I tried your test with Perl 5.8.3 and HTML::Template 2.7. The first
line was printed in the output. What version of HTML::Template are
you using?
-sam
On Tue, 24 Aug 2004, Martin Sarfy wrote:
Using TMPL_IF lang= construct isn't appropriate for several reasons:
-- $lang is not accessible in TMPL_LOOP context
Use global_vars and it will be.
-- it's too clumsy for manual writting
I don't understand what you mean by this. If you
On Thu, 12 Aug 2004, Chisel Wright wrote:
On Wed, Aug 11, 2004 at 06:56:08PM -0400, Sam Tregar wrote:
Also it seems to be MySQL specific. Did I read that wrong?
Nope, you got that right too.
Out of interest, why MySQL? I know that lack of Postgres support is one
reason that we
On Thu, 12 Aug 2004, Mathew Robertson wrote:
you are kidding right?
Not at all. That doesn't mean I expect to convince anyone though.
This is the kind of wisdom that usually only comes from experience!
ACID capabilites and all that...
proper locking semantics...
long history with native
On Wed, 11 Aug 2004, David Wheeler wrote:
To whom did you report them? I don't recall you running into any bugs, only
features you were used to in MySQL but were missing in PostgreSQL.
On the PostgreSQL mailing-list. Two that jump to mind which I'm
absolutely sure I reported:
- pg_dump
On Wed, 11 Aug 2004, David Wheeler wrote:
On Aug 11, 2004, at 9:50 PM, Sam Tregar wrote:
How can I be so sure? I've worked with big complex systems running on
both databases. I've watched Bricolage completely destroy user data
despite using PostgreSQL's transaction support.
You did
On Wed, 11 Aug 2004, Jason A. Crome wrote:
What have others done? What would you do in my place? I'm curious to hear,
because this is starting to drive me nuts ;)
For Krang (http://krang.sf.net) we came up with a rather novel error
handling system that seemed to work well and required no
On Wed, 11 Aug 2004, Bill McCormick wrote:
Can somebody tell me what all the .NET fuss is about?
Like the Java fuss, the .NET fuss is paid-for fuss. Microsoft funds
advertising, articles, development and general hooplah which results
in everyone knowing that .NET is all that and a whole lot
On Tue, 10 Aug 2004, David Wheeler wrote:
eWeek has reviewed Bricolage, the mod_perl-powered,
HTML::Template-supporting, PostgreSQL-backed open-source content
management system. The article was published last week. An excerpt:
And if you like the sound of Bricolage, you're gonna really like
On Mon, 2 Aug 2004, Carl Franks wrote:
To figure out if any other module is pure perl, search for it on
search.cpan.org Then follow the link with the module version number
(e.g. HTML-Template-2.7). Then click on the [Browse] link to view
the modules' files. If there are no *.xs *.c or *.h
On Thu, 29 Jul 2004, Nicholas R. Markham wrote:
t/99-old-test-plFAILED tests 1-70
Failed 70/70 tests, 0.00% okay
Failed TestStatus Wstat Total Fail Failed List of Failed
On Thu, 29 Jul 2004, Nicholas R. Markham wrote:
It gets odder...
The output of the command you requested is attached.
You must be kidding! Or something incredibly weird is happenning on
your system. What does this return:
perl -v
And how about this:
perl -Mblib -MHTML::Template -e 1
On Thu, 29 Jul 2004, Nicholas R. Markham wrote:
perl -v
This is perl, v5.6.1 built for i386-linux
perl -Mblib -MHTML::Template -e 1
Using /misc/home/users/markhn/HTML-Template-2.7/blib
Well, that looks fine. I have no idea why running the test script
outputs a log of your working
On Thu, 29 Jul 2004, Nicholas R. Markham wrote:
Oops, I guess I confused the file with another log.txt in a different directory.
(That'll teach me to use such generic file names.) Attached should be the
*real* log, which is fairly interesting in its own right.
Well, it looks like all the
On Thu, 22 Jul 2004, Vitaliy Babiy wrote:
I am starting a new project today which is going to have more 200
run modes, and I would like to break things up.
But I'd like to have single CGI script that handles every request to
the application. I also need to have centralized list of all run
Krang v1.021 is now available. Notable changes in this release:
- Krang Data Set (KDS) files may now include any number of Media
objects. The previous limit was 32,000.
- The new DBHost option allows MySQL to run on a separate machine.
- Category templates can be turned off per
Krang v1.021 is now available. Notable changes in this release:
- Krang Data Set (KDS) files may now include any number of Media
objects. The previous limit was 32,000.
- The new DBHost option allows MySQL to run on a separate machine.
- Category templates can be turned off per
Krang v1.021 is now available. Notable changes in this release:
- Krang Data Set (KDS) files may now include any number of Media
objects. The previous limit was 32,000.
- The new DBHost option allows MySQL to run on a separate machine.
- Category templates can be turned off per
On Thu, 15 Jul 2004, Sabherwal, Balvinder (MBS) wrote:
I have 2 C::A that I need to link. What I need is that from app a I want to
create a link which calls the app b but skip the run mode 1 and go to run
mode 2. Any pointers as how can I do that?
A link with a GET param works:
a
On Wed, 14 Jul 2004, Thilo Planz wrote:
I have a problem with using UFT8-encoded templates.
The problem seems to be caused by the templates not being open'd() with
the :utf8 flag.
Does it work if you open() them yourself and pass the filehandle to
new() instead of the filename?
-sam
The first Krang add-on, Krang-BricLoader v1.11, is now available.
With this add-on Krang can load data from Bricolage. If you've been
looking for a way to go from Bricolage to Krang without losing data
then your search is over!
Download this, and someday many more, add-ons from the Krang add-on
On Wed, 7 Jul 2004, alberto_schiano wrote:
As Randal Schwartz always says...
'...
=1= #!/usr/bin/perl -Tw
=2= use strict;
=3= $|++;
Lines 1 through 3 start nearly every program I write, turning on taint mode
(good for CGI programs), warnings (good for
On Wed, 7 Jul 2004, Alex Mikhajlichenko wrote:
Did you made some additional tuning your script or your web server to
avoid a buffering?
No, I didn't. But I'm running under mod_perl which turns each print
into a $r-print() call. I'm sure there's some buffering going on,
but not enough to
On Tue, 6 Jul 2004, Peter Masiar wrote:
I was thinking about creating partial_output runmode, which will
display at least header before long journey to select thousands of
records, to give users visual clue they did clicked on submit button and
program is working to fetch the data.
The easy
On Mon, 5 Jul 2004, Ron Savage wrote:
I'm running 2 CGI scripts, which are almost identical. But the fact
that there are 2 scripts means 2 sessions, and hence the left frame
does not know what the right frame is doing.
This is not generally true. Scripts can share cookies, and therefore
Krang v1.020 is now available. Notable changes in this release:
- Added support for Fedora Core 2.
- Upgraded to HTML::Template v2.7, fixing a bug in the handling of
cached templates.
- More bugs are now fixed.
Detailed change-log here: http://krang.sf.net/docs/changelog.html
Krang
Krang v1.020 is now available. Notable changes in this release:
- Added support for Fedora Core 2.
- Upgraded to HTML::Template v2.7, fixing a bug in the handling of
cached templates.
- More bugs are now fixed.
Detailed change-log here: http://krang.sf.net/docs/changelog.html
Krang
This module is available on SourceForge. Download it at:
http://html-template.sourceforge.net
The module is also available on CPAN. You can get it using
CPAN.pm or go to:
http://www.cpan.org/authors/id/S/SA/SAMTREGAR/
CONTACT INFO
This module was written by Sam Tregar
On Thu, 24 Jun 2004 [EMAIL PROTECTED] wrote:
I also get the feeling that module development seems to have more
activity around 2 in other areas.
I'm sure you're right. There's a lot of work to be re-done! How much
fun is it to work on Apache 1.3 where everything important already
works?
On Fri, 18 Jun 2004, Mathew Robertson wrote:
Ultimately HTML::Template v2 doesn't offer much in terms of official
support for sub-classes and extensions. That's a deficiency I intend
to address in the perpetually-delayed v3.
One of the changes that I made, was so as to support
On Fri, 18 Jun 2004, Gabor Szabo wrote:
I mean, keep the old test suit and add a new one covering both the old
things and additional things.
I am suggesting the following: copy the test.pl file in t/99-old.t or
some similar name and change the minimum necessary to cleanly run.
Alright, this
On Fri, 18 Jun 2004, Gabor Szabo wrote:
On Fri, 18 Jun 2004, Sam Tregar wrote:
Alright, this sounds fine to me. I'm commiting this now.
Oh thanks
Is this suposed to be the correct CVS ?
http://cvs.sourceforge.net/viewcvs.py/html-template/HTML-Template/
I am asking as I have just
Hello all. I'm sure it will come as a great shock, but I'm planning
to make a new release of HTML::Template sometime next week. Here is
what I have so far:
- Bug Fix: Improved cache keying to be sensitive to options which
alter the compilation of templates (path, search_path,
On Thu, 17 Jun 2004, Gabor Szabo wrote:
if you don't mind to include a Test::More dependency then
I'd be glad to send you an additional (or replacement)
test suit using Test::More.
I don't think so. It's not that I mind a Test::More dependency - lots
of my modules use Test::More - but that
On Thu, 17 Jun 2004, Cees Hek wrote:
I am guessing that you pulled out the key generation code into a
subroutine that can be overridden in a subclass? That will allow for
added flexibility with the filter support and caching, which is what
sparked the discussion I linked to above (ie filters
On Fri, 18 Jun 2004, Mathew Robertson wrote:
hmm... general perl-ism is to use a leading underscore to refer to
the method call as being private.
Yup, that's right. It is private. But since when has that stopped Cees?
-sam
---
This
On Fri, 18 Jun 2004, Mathew Robertson wrote:
Yup, that's right. It is private. But since when has that stopped Cees?
:-)
ok - I was under the impression that the purpose of the _cache_key
method was to all a custom cache key capability - in which case the
method should be public.
On Fri, 18 Jun 2004, Mathew Robertson wrote:
Would you prefer:
a) seperate patches per piece of functionality
Yes. That's probably a lot of work though, so you might want to run
them by me and let me save you the trouble of creating patches for the
ones I won't take. ;)
-sam
On Wed, 16 Jun 2004, Steven Scotten wrote:
My problem is that I'm trying to pick up mod_perl2 without ever having
used mod_perl before.
I agree. I think you should back up a step and get comfortable with
mod_perl 1. Unless you're doing this just for the thrill of learning
something new and
On Wed, 9 Jun 2004, Greg Jetter wrote:
get_data_callback returned something that isn't an array ref! You must return
from get_data_callback in the format [ [ $col1, $col2], [ $col1, $col2] ] or
[ { NAME = value ... }, { NAME = value ...} ]. at
/usr/lib/perl5/site_perl/5.8.0/HTML/Pager.pm
I do see one potential problem:
for (my $x = 0; $x $rows; $x++) {
push(@return_array, $data_record[$offset + $x] );
That will push on 'undef' values on your last page. Maybe change that
to:
push(@return_array, $data_record[$offset + $x] )
if exists
Krang v1.019 is now available. Notable changes in this release:
- Upgrades can now be re-run even if they failed part-way through
previously. Several bugs are now fixed which should make failure
less likely than before.
- Krang::DataSet, and as a result krang_import, is now much
Krang v1.019 is now available. Notable changes in this release:
- Upgrades can now be re-run even if they failed part-way through
previously. Several bugs are now fixed which should make failure
less likely than before.
- Krang::DataSet, and as a result krang_import, is now much
Krang v1.019 is now available. Notable changes in this release:
- Upgrades can now be re-run even if they failed part-way through
previously. Several bugs are now fixed which should make failure
less likely than before.
- Krang::DataSet, and as a result krang_import, is now much
On Wed, 2 Jun 2004, michael wrote:
And then the accompanying tmpl_vars in the templates. I was thinking about
using something similar to the way Template Toolkit handles it where I can
just specify an object and then have H::T pull the attributes (or methods) as
needed. Something like
On Wed, 2 Jun 2004, Timm Murray wrote:
Why would you need to hook into the parser to implement this?
For the attribute syntax I originally suggested, it needs to be notified of
the extra attributes (which I think would be useful for more than just this
instance).
Take a look at
On Fri, 21 May 2004, C Hagstrom wrote:
my $res = $sth-fetchall_arrayref({});
...
assign it to a parameter:
$q-param(res = $res);
Surely that should be:
$template-param(res = $res);
There's no reason to give CGI::param() an array of hash-refs, is there?
-sam
On Wed, 12 May 2004, Carl Franks wrote:
You can obtain a template to be saved externally as such:
$cache = $t-output( cache_ref = 1 );
I think I'd write that:
use Storable qw(freeze);
$cache = freeze($t);
HTML::Template works fine with Storable - that's how the file_cache
and
On Wed, 12 May 2004, Kapoor, Nishikant wrote:
[Wed May 12 08:16:00 2004] [error] [client 127.0.0.1] stderr from =
script: Digest::MD5::md5_hex function probably called as class method =
at HTML/Template.pm line 1231.
I checked the line 1231 in Template.pm and it says:
my $hash =3D
On Wed, 12 May 2004, Brian Cassidy wrote:
Something I've been wanting for a while now is a generic caching system to
plug in to CGI::Application. For example, I have a CGI::App which uses
Gedcom.pm. Some of its operations can be quite lengthy, thus caching would
be wise.
Why not just Memoize
201 - 300 of 778 matches
Mail list logo