On Sat, Aug 23, 2003 at 01:55:03PM +0200, Marcel Greter wrote: > > 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
Yes... I always fall into that pithole. I think this is because I find the 'defined(...) ? ... : ...' phrase is kinda ugly. Silly me, I know. > $_ = defined $_ ? $_ : "NULL"; Still... I don't know if I like toying around with $_. Especially since you change the real array value (and not a copy) and this might cause problems later on (should you use the values somewhere else as well). But why are we talking about this on a mod_perl list. Sorry guys. --Frank -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html