An Embperl sub is for generating output, for doing some work use a Perl sub.
Instead of
>
> [ $ sub sortnum () $]
> [- $a <=> $b; -]
> [$ endsub $]
>
use
[-
sub sortnum
{
$a <=> $b ;
}
-]
Gerald
---
Gerald Ric
On Tuesday 27 April 2004 06:51 am, [EMAIL PROTECTED] wrote:
> Hi All,
> I have an web app that creates simple graphs. In one of the scripts I need
> to sort the data returned from the DB query numerically. I have a sub for
> this sort. I converted the script shown below from a regular cron job to
>
Hi All,
I have an web app that creates simple graphs. In one of the scripts I need
to sort the data returned from the DB query numerically. I have a sub for
this sort. I converted the script shown below from a regular cron job to
embperl so I know that the perl works.
The problem with the script be