Rob Dixon wrote:
Albert Browne wrote:
Thirdly, the test
if ($Author ne "")
is tidier written as
if ($Author)
Unless of course $Author is 0 in which case you have changed the logic.
I often use 0 as the default user account id on websites that have user
registration, in which case empty
Albert Browne wrote:
>
> I am using the code below in part of a subroutine. It displays ok later in
> the routine within a block.
> But when I try to use $Meta elsewhere the string appears to be empty.
> Further investigation shows the string is ok until it gets to the >
> in the string. The stri
Try changing
$title = $query->param("Title");
to
$title = $query->param('Title');
and do the same thing for the owner param
Also, if you have an if statement that only executes one line of code
when the statement evaluates true, you can do this:
$Meta = "\n" if ($title ne "");
IMHO, this is m