equality as a variable
- From: "Shiraz" <shirazk@xxxxxxxxx>
- Date: 30 Sep 2005 09:41:43 -0700
i need to put the equality in an if statement as a variable
($val1, $val2, $comp) = (1,2,"gt");
if ($val1 $comp $val2)
{ print $val1; }
i couldnt find anything in the achives.... if some knows it, please let
me know.. or point me in a direction i can research the method.
thanks
.
- Follow-Ups:
- Re: equality as a variable
- From: Brian Wakem
- Re: equality as a variable
- Prev by Date: Re: ARGV interpretation in s///
- Next by Date: Re: Perl calculate and average problem
- Previous by thread: FAQ 6.2 I'm having trouble matching over more than one line. What's wrong?
- Next by thread: Re: equality as a variable
- Index(es):