Hi Adam You certainly seem to have got yourself confused :)
I'm not certain what it is you're trying to do either. Remember the following: $xxx is a _scalar_ value, which will hold a single number, string etc. @xxx is an _array_ value, which will hold a list of scalar values Since each element of an array is a scalar value it is accessed as $xxx[0], $xxx[1] etc. Also try running and understanding the following code: my @fieldprices = (14.95, 28.00, 0.00); foreach my $fieldprice (@fieldprices) { if ($fieldprice > 0) { print "Field Price $fieldprice\n"; } } If you're still stuck try to explain to us some more details of your actual application, and why you're coming to the conclusions you've stated. HTH, Rob "Adam Southerland" <[EMAIL PROTECTED]> wrote in message 005701c2b521$52e4a6a0$[EMAIL PROTECTED]">news:005701c2b521$52e4a6a0$[EMAIL PROTECTED]... > Hi all... > > I have worked for about 6 hours on one bit of code and to be honest, I > am bum-fuzzeled. I don't know who to ask or where to look for help.. > Chat rooms seem to be of no use.. > > I have values - 14.95 and 28.00 and 0.00 > > I want this code to say, if equal 0.00 then don't display html, else > display it. > > My Var = @fieldprice > > If (@fieldprice > 0) { #show HTML; } > Or > If (@fieldprice gt "0") { #show HTML; } > > Here is the true problem: > In the comparison the Variable is jacked up and returns only '.##' (Ex. > '.95' '.00' '.00') > > So any even number priced doesn't get shown. > > Someone said do a 'RegExp' (Regular Expresion) like this /\d+\.\d+/ > \d+ = numeric number > \. = '.' > / is beginning and end. > > I have tried > @fieldprice = /\d+\.\d+/; > but it still fails to work right. > > If you don't know, perhaps you know someone who does? > > Any help is grateful =) > > Adam Southerland > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]