in reply to How do I get the name of the file from which the class was loaded?

Can't you get this from caller?
(caller(0))[1]
aught to be the file name the routine is declared in. (Not that I've tested that or anything.)

Of course, getting it from __FILE__ is more straight-forward. 8-)

  • Comment on RE: How do I get the name of the file from which the class was loaded?
  • Download Code