as outer block (and recipes)

2003-01-03 Thread Kaare Rasmussen
I know this may be a stupid posting, because I've touched the topic before. 
But I keep running into this problem and I think I remember that you 
(Gerald) told that you would fix the problem I reported (rows with  
cells). 

I've written some sub routines to handle data list and data entry tables. I 
need this construction a lot of the time: 



some  cells

[$if something$]

 for @data1

[$elsif some other thing$]

 for @data1


 for @data2

[$endif$]

some fixed rows at the end
 

So obviously I'd like the tags  to be the enclosing entity for 
which a recurring action shuld take place. At least as an option. 

Another options is of course to program it myself in Perl, but I like to use 
the power of the tools I work with, and automatic iteration is one of 
Embperls strength. 

(Maybe) on another note, I'd like to know more about how to use recipes. Or 
rather: For what. Obviuosly it's a very nice solution. But I can't figure 
out for which problem. Will I be better off using a recipe than the above 
mentioned subroutine components? 

Right now I find data in my epl files and then I pass it on together with a 
hash containing information about how to display and process the fields to a 
subroutine. Getting back from this subroutine I call the update routines. 

Will recipes be a better way and if so, why? If not, where can I put recipes 
to good use? 

--
Kaare Rasmussen--Linux, spil,--Tlf:3816 2582
Kaki Datatshirts, merchandize  Fax:3816 2501
Howitzvej 75   Åben 12.00-18.00Web:  www.suse.dk
2000 FrederiksbergLørdag 12.00-16.00   Email:[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Terminating the current Apache process

2003-01-03 Thread Kee Hinckley
Can anyone suggest why the following is not working?  It ought to 
terminate the current apache process and referesh the browser so that 
it reloads the same page, but from a different process.  However the 
log messages I'm getting indicate that when the condition is met, the 
page is being reloaded over and over using the same process.

[$ if ($set->{title} =~ /^\s*$/) $]
[-
use lib "$ENV{DOCUMENT_ROOT}/data";
use SWC::WebUtil;

my %info;
$info{msgs} = ["Empty title", "Process: $$"];

SWC::WebUtil::ReportError('mail.somewhere.com'
		'[EMAIL PROTECTED]', \%info);
$req_rec->child_terminate();
$req_rec->header_out("Refresh" => "0");
-]
[$ endif $]


My problem is an old one--sometimes the database returns a set of 
empty data.  I'm still working on tracking that down, but this at 
least detects the problem and ought to deal with it.
--

Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Suppressing Embperl warnings?

2003-01-03 Thread Tammy Hepps
Hi all -

I am running a script from the command line that uses Embedded Perl to 
generate static HTML pages.  I am calling HTML::Embperl::Execute on 
different input files in the following manner:

my $errors = [];
HTML::Embperl::Execute ({ inputfile => ...,
outputfile => ...,
debug => 0, options => 10769, escmode => 0, 
errors => $errors,
param => [{ ... }] });
output_embperl_errors ($errors);

sub output_embperl_errors {
my ($errors) = @_;
foreach my $error (@$errors) {
print STDERR $error unless $error =~ /subroutine .* redefined/i;
}
}

My problem is that many warnings about redefined subroutines (which I don't 
care about) get outputted to my terminal window, obscuring the legitimate 
warning and error messages.  These messages look like:

[26180]ERR:  32:  Warning in Perl code: Subroutine page_header redefined at 
/home/www/embperl/template.eplo line 1.

As you can see in the code above, I tried shuttling these warnings to the 
errors arrayref and outputting them selectively via 
output_embperl_errors().  The arrayref ultimately does contain the 
warnings, but the warnings are still outputted as they are generated!

I've tried a number of other schemes to suppress these warnings to no 
avail, so I would appreciate your help!

Thanks -

Tammy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SessionX::Config.pm is missing

2003-01-03 Thread Ville Jungman
Hi

Where I can find file Apache::SessionX::Config.pm. Does it autogenerate, 
come with some package or something? It feels to be hard to find this file 
from internet.

ville jungman, ulvilantie 3 b 11, 00350 helsinki, finland
tel. + 358 - 9 - 225 4482 , http://www.kolumbus.fi/vilmak
usko Herraan Jeesukseen, niin sinä pelastut. (apt. 16:31)



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]