http://qs321.pair.com?node_id=11117267


in reply to Appending /*.* to default Perl variable $_

You need to put that in quotes:

unlink glob "$_/*.*";