Re: Cookie Code

2003-09-08 Thread Marcel Greter
Tim Edwards wrote:

I'm sending 3 cookies. The first one goes properly. The second two get 
print to the screen. Same script run under normal perl works fine. 
Suggestions?
Just a suggestion, but are you sure that you don't print out the 
content-type header after sending the first cookie ? It somehow sounds 
like you do ...



Re: Re: AW: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread Marcel Greter

-CUT--
my $val=$_||'NULL'; print qq(td DEFANGED_bgcolor=0#d0d0d0$val/td);
-CUT--
 

This is not a very good solution. You would also catch the case where $_ 
is 0, which may should not happen. You would better do

foreach (@table_data) {
$_ = defined $_ ? $_ : NULL;
print qq(td bgcolor='#d0d0d0'$_/td); # Here is line 42
}
Basically you also simply could use the warnings pragma within this sub :

no warnings uninitialized;

greets, Marcel



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


introducing a set of modules to create dynamic websites

2003-01-17 Thread Marcel Greter
 
would need some more days to setup a starter package with some preset 
templates and users as otherwise you'll have some headaches setting up 
everything I think :-|

greetings, Marcel Greter