in reply to Re: Tk helps another package to export?
in thread Tk helps another package to export?

Well, actually
use base qw(Foo Bar);
is more or less the same as
BEGIN { require Foo; require Bar; push @ISA, qw(Foo Bar); }
Which raises an interesting point, prototypes are not respected when a module is required. However they are when they are used.

--- demerphq
my friends call me, usually because I'm late....

Replies are listed 'Best First'.
Re: Re: Re: Tk helps another package to export?
by IlyaM (Parson) on Jan 30, 2003 at 11:36 UTC
    prototypes are not respected when a module is required. However they are when they are use

    Wrong. Prototypes are not respected if they are defined too late (i.e. not in the compile time). In this case require is wrapped in BEGIN block so it is the compile time.

    --
    Ilya Martynov, ilya@iponweb.net
    CTO IPonWEB (UK) Ltd
    Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
    Personal website - http://martynov.org

      Thanks for the clarification.

      :-)

      --- demerphq
      my friends call me, usually because I'm late....