require Foo; import Foo; should have roughly the same effect as use Foo.
Or better, BEGIN { require Foo; import Foo; } should have exactly the same effect as use Foo.
But other than as a lesson in how use works under the hood, I'm not sure why any exercise would insist that you employ require rather than trusty old use.
In reply to Re^3: Undefined subroutine - newbie problem
by tobyink
in thread Undefined subroutine - newbie problem
by blackhat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |