Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Why do multiple requires not work?by bart (Canon) |
on Dec 06, 2012 at 11:53 UTC ( [id://1007547]=note: print w/replies, xml ) | Need Help?? |
You can't use slashes in the name of the required file. You can use either double colons, and no file extension (".pm" is assumed), or you can use a string (a quoted literal or a variable) with a path with slashes and with file extension.
So you can do
if it has no file extension, or if it has ".pl" as file extension.
In Section
Seekers of Perl Wisdom
|
|