So you have a program that contains routines which should really be in a library. You want to run those routines separately to test them. You don't want to run the program, of course. Or, worse, you want to run those routines for actual production use (you should be shot) without running the program.
I found out how to do this in the middle of the night a couple of weeks ago, from a presentation somebody linked to from here. Jotted down some notes, and now I'm putting it here so I can find it later.
import qw(routine routine routine);
Or, for testing:
import qw(routine routine routine)
This just gets at what the
use keyword does, internally.
Update: Okay, this is apparently wrong.
Which means somebody's slides were way off.