$prefix=test; $runid=12; unlink glob("$prefix$runid.*") || print"Error removing files $!\n"; [download]
In reply to unlink glob by rbm1213