perlquestion
partymeeple
a humble dead-set newbie looks for sandles to kiss...<BR>
the <B>if</B> statement in the while loop is fooled by white space that apears infron of some of the array elements after they have been passed though the web server. i tried stripping these but it broke other parts of my code.
<BR>
what's a newbie freindly way to ignore white space in the array elements my <B>if</B>??
<P>
<code>$i=0;
my $lic_number;
while ($staff[$i*3]){
if (($staff[$i*3+$staff_last] eq $names[0]) && ($staff[$i*3+$staff_first] eq $names[1])){
do some stuff...
last;
}
$i++;
}
</code>
<P>
your humble novice,<BR>
meeple (who is comming to terms with the limitations of the llama book.. i think i need a camel)
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-696718">
beware the farmers.
</div></div>