in reply to Retriving Filename from Filehandle
$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"
|
|---|