for (@plugins) { require $_; # Basically "use"-ing the file s/\//::/g; # Convert the path name into a package name s/\.pm$//; push @pluginInstances, $_->new; # Create a new instance }