$str = "$r{'passwd'}";
if ($str eq undef) { $str = " "; }
bodyprint("<td>$str</td>");
At the moment it displays the customers full password and I want it to just display the first two characters of the password. Can anyone tell me how this can be done?
Any suggestions would be much appreciated.
Cheers
Linda
$trunc_str = substr ($str, 0, 2);
bodyprint ("<td>$trunc_str</td>");