in reply to Scoping problem!!

perldoc -f do, perldoc -f require, perldoc -f use. If you ask me, you are better off making B.pl a real module, but then if it's really called like that, then don't call it B.pm, since the latter already exists and is in core.

All in all it's hard to suggest you a good strategy without knowing what A.pl and B.pl really do. For sure what you're asking is awkward, as such, and most people will smell a XY Problem here.

Replies are listed 'Best First'.
Re^2: Scoping problem!!
by unchomped (Initiate) on May 10, 2006 at 22:23 UTC
    ... and to add to this excellent advice, take a look at Including files in order to help you solve X