$filename = '/etc/hosts'; open($filename, $filename);
It is left as an excercies for the reader to worry about potential security pitfalls (Hint: not specifying the mode).
--
perl -p -e "s/(?:\w);([st])/'\$1/mg"
In reply to Re: Retriving Filename from Filehandle
by belg4mit
in thread Retriving Filename from Filehandle
by Snowman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |