I am trying to write a simple program like the one below that lets users at a console select an active employee.&nbsp; However, because they are not supposed to see the employee's employee number I can't figure out a way to let them make the selection.&nbsp;&nbsp; I thought I could do it with a counter ($i) but don't know of a way to associate the date with the count.&nbsp; Any ideas would be greatfully appreciated.<br><br>Thanks,<br><br>Richard<br><br>#!/usr/bin/perl -w<br><br>my $q = "SELECT emp_no, first_name, last_name, mobile_ph<br>&nbsp;FROM employee<br>&nbsp;WHERE end_date IS NULL"<br>my $sth-&gt;prepare($q);<br><br>my ($emp_no, $f_name, $l_name, $ph);<br>$sth-&gt;execute();<br>$sth-&gt;bind_columns(\($emp_no, $f_name, $l_name, $ph);<br><br>my $i;<br>while($sth-&gt;fetch) {<br>&nbsp;&nbsp;&nbsp; $i++;<br>&nbsp;&nbsp;&nbsp; print $i . " " . $name . " " $f_name . " " . $l_name . " " . $ph ."\n";<br>}<br><br>print "Somehow make a selection based on what you're allowed
 to view\n";<br>my ($sel = &lt;STDIN&gt;);<br><br><BR><BR>Your beliefs become your thoughts.  Your thoughts become your words.  Your words become your actions.  Your actions become your habits.  Your habits become your values.  Your values become your destiny.  -- Mahatma Gandhi