if (!eof($a)) ... [download]
Dave.
In reply to Re^5: How to remove the actual glob from a glob reference by dave_the_m in thread How to remove the actual glob from a glob reference by targetsmart