in reply to Re: Problem comparing two variables
in thread Problem comparing two variables

yeah, they're both numeric, you can see the whole shebang on my scratchpad

Thanks tho
Robert
  • Comment on Re: Re: Problem comparing two variables

Replies are listed 'Best First'.
Re: Re: Re: Problem comparing two variables
by JamesNC (Chaplain) on Jan 03, 2003 at 06:51 UTC
    you might try doing something like this too.. I use scalar sometimes... like type casting operator...
    for(@custchoices){ chomp; my($in,$pr,$pri,$de,$qu) = split(/\|/,$_); $in = scalar $in; $item = scalar $item; open INF, ">temp.file" or die "$!\n"; print INF "$in\n"; print INF "$item\n"; close INF; if($in == $item){ $qu++; open INF, ">$custid" or die "Couldnt update quantity: $!\n"; print INF "$in|$pr|$pri|$de|$qu|\n"; foreach my $line(@custchoices){ if($item !~ /^$in/){ print INF $line; } } close INF; print "Location: $url=view\n\n"; } }
    :)