Re: subroutine question

2004-04-27 Thread Gerald Richter
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

Re: subroutine question

2004-04-27 Thread Beau E. Cox
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 >