I knew there was something twisted in my mind ... *sigh*
--
Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org>
>>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<<
Just as a light warning... diotalevi's method works fine but be aware that if you ever call my_sub("literal") (or similar), you will end up with a fatal error of Modification of a read-only value attempted at ... (with the file and line number being in your package at the tie; you may want to trap that error and carp it out to the caller).