in reply to Refining my Program
use struct;
my $first;
my $last;
open (INPUT,'>test.txt') || die "Can't open Test.txt";
open (OUTPUT, '<testb.txt') || die "Can't open Testb.txt";
while (<INPUT>){
($last,$first)=split(',');
print OUTPUT "$first , $last";
}
close INPUT;
close OUTPUT;
</body>
</html>
|
|---|