RE: operator question

2002-06-11 Thread wayne
On 5 Jun 2002 at 17:18, Morse, Richard E. wrote: > Charles Oppenheimer [mailto:[EMAIL PROTECTED]] wrote: > > > Hi folks. I have a question... I wanted to create a > > sub procedure that takes an operator as an argument, > > like so: > I've never actually done this, so I'm somewhat guessing he

RE: operator question

2002-06-05 Thread Morse, Richard E.
Charles Oppenheimer [mailto:[EMAIL PROTECTED]] wrote: > Hi folks. I have a question... I wanted to create a > sub procedure that takes an operator as an argument, > like so: > > &compare(1,"<",2); > > sub compare { > my ($value1,$operator,$value2) = @_; > > if ($value1 $operator $