in reply to Require - Module inclusion
It's fine, except require never returns false. On error, it throws an exception. Also, \:\: would be more readable as ::.
use constant PATH => 'XX/XDC/'; my $change=PATH."raja"; require("$change.pm"); $change=~ s{/}{::}g; $change->new();
|
|---|