<br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"># this gets the name (scalar context forced for readability here)
<br>my $filename = scalar($fh);</blockquote><div><br>I didn't know that. Thanks a lot.<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
However, there is no guarantee about how you will get the filename.<br>Some platforms (eg. Windows with Explorer) will give you the full<br>path with &quot;\&quot; as a path separator and a drive letter, other platforms<br>
may only tell you the filename without any directory names...<br></blockquote></div><br>It's OK<br>