in reply to How to find out the calling URL??
Are you looking for the current working directory or the referrer? The working directory can be found in $ENV{'PWD'};
Please clarify your question so we can answer it.