Modified test.pl