in reply to Exporter module help/example

I don't get any such warnings. And I don't see anything that should cause the warning you describe. Could you provide the exact error message? Are you sure the .pm files you think are being loaded are actually the ones being loaded?

>perl -lw sand_parent.pl 5 6 >perl -v This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 25 registered patches, see perl -V for more detail)
$ perl -lw sand_parent.pl 5 6 $ perl -v This is perl, v5.8.4 built for i386-linux-thread-multi

Replies are listed 'Best First'.
Re^2: Exporter module help/example
by Zen (Deacon) on Nov 26, 2007 at 18:15 UTC
    perl -c sand_kidB.pm
    Subroutine print_a redefined at sand_kidB.pm line 19. Subroutine set_b redefined at sand_kidB.pm line 24. Subroutine get_b redefined at sand_kidB.pm line 30.


    Same for kid A.
      perl's argument is a Perl script. sand_kidB.pm is not a Perl script. You mean
      perl -c -e'use sand_kidB'
      or
      perl -c -Msand_kidB -e1
        Syntax OK.
        Guess this is valid. TY.