I took your advice and added the following code to my source code. I want to print
the students name to the result
file regardless if I add a number on the end of the student name or not. I have
tried putting the PRINT O
at different location in this code. I can not get it to print to the result file.
WHY and HELP!!
Thank You
Susan
open(I,'STNAMES.DAT') or die$!; # open student consolidated names
open(O,'>results') or die"results: $!\n"; # result file open output
$c=1;
$foo=substr($_,0,26); # strip out only the student last name and first name.
while(exists($student{$foo})){ # if the students is used already
$foo= "$_$c"; # add the numer to it
$_=$foo,substr($_,27,20); # add the remainder of the file back on to input
string
$c++; # increment the number }
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]