in reply to Variables in require

The trick that converts the '::' into directory separators (as well as assuming a '.pm' extension) only works on barewords.
So you will need to specify the directory and filename explicitly.

Update: Looking at the other answers, I guess I was wrong. :-)
Update 2: Excepting tadman's suggestion (using 'eval'), according to perlfunc at least, I was right. I just gave up too easily. :-)

Impossible Robot

Replies are listed 'Best First'.
Re (tilly) 2: Variables in require
by tilly (Archbishop) on Dec 04, 2001 at 23:51 UTC
    No, you were right. I had a thinko. (Been a long week, short on sleep.)