in reply to Renaming a module

How about this?
  1. Add frob to Util.
  2. Remove frob from Frob.
  3. add use base Pileofrogs::Util; to Frob.
What do you guys think, would that work too?

Replies are listed 'Best First'.
Re^2: Renaming a module
by dynamo (Chaplain) on Feb 17, 2006 at 21:20 UTC
    It will work if and only if frob() is a method call. In other words, if you call Pileoffrogs::Frob::frob(), it will not work using the method you describe. But if you call Pileoffrogs::Frob->frob(), it will. If you want Pileoffrogs::Frob::frob() to work, you'll need to add this to Pileoffrogs::Frob::Util:
    use Exporter; our @EXPORT_OK = qw(frob);
    and change the use base line in Pileoffrogs::Frob:
    use base Pileoffrogs::Util (frob);
    Hope that helps..