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();
In reply to Re: Require - Module inclusion
by ikegami
in thread Require - Module inclusion
by kulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |