On Mon, Jun 25, 2001 at 10:14:52PM +0800, Exile wrote:
> Q1. simply use this : if (($a =~ $b) && ($b =~ $a)) { $match = "Y" }
You're comparing $a to $b using the regex operator. I doubt you intended to
do this (if you did, there are various things you did wrong); you should be
comparing them with the eq operator:
if ($a eq $b) { $match = "Y" }
> Q2. $integer = int($value)
int is not for converting a string to an integer. Strings are automatically
converted to numbers when they're used as numbers (for instance, added,
subtracted, etc.). int is for removing the exponent portion of a floating
point value.
Please, before posting, verify your answers.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--