diff --git a/mode/perl.py b/mode/perl.py index a13df82..97de67d 100644 --- a/mode/perl.py +++ b/mode/perl.py @@ -301,11 +301,13 @@ class PerlSetLib(Method): '''Set the path(s) to find perl modules''' args = [arg("lib", dt='path', p="Lib: ", dv=lambda w: '.')] def _execute(self, w, **vargs): - w.application.config['perl.libs'] = vargs['lib'].split(':') + libs = vargs['lib'].split(':') + w.application.config['perl.libs'] = libs class PerlAddLib(PerlSetLib): - '''Set the path(s) to find perl modules''' + '''Add a path(s) to find perl modules''' def _execute(self, w, **vargs): - w.application.config['perl.libs'].append(vargs['lib']) + libs = vargs['lib'].split(':') + w.application.config['perl.libs'].extend(libs) class PerlBase(Method): bname = '*Perl*'