Re: Determining which module exported a specific function.

From: Abigail (abigail_at_abigail.nl)
Date: 01/13/05


Date: 13 Jan 2005 20:52:58 GMT

Sisyphus (kalinaubears@iinet.net.au) wrote on MMMMCLIII September
MCMXCIII in <URL:news:41e5fdf7$0$19452$5a62ac22@per-qv1-newsreader-01.iinet.net.au>:
)) Hi,
))
)) Let's say I'm working through a script, trying to diagnose a problem,
)) and there's a function foo() that I don't know much about. I wish to
)) consult the documentation on foo(), but I don't know which of the 20
)) loaded modules exported it. I know 'foo' is in @EXPORT_OK of one of
)) those 20 modules - but I don't know *which* module.
))
)) How can I determine quickly and easily which module's documentation I
)) need to consult ?
))
)) Or, to rephrase, how can I quickly determine an imported function's
)) fully qualified package name.

Add a print statement to Exporter.

Well, that's how I would do it.

Abigail

-- 
INIT  {print "Perl "   }
BEGIN {print "Just "   }
CHECK {print "another "}
END   {print "Hacker\n"}


Relevant Pages