We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad653ba commit 27101efCopy full SHA for 27101ef
bin/plx
@@ -175,6 +175,7 @@ sub setup_env_for_dir {
175
}
176
177
sub setup_env {
178
+ $ENV{PERL_PLX_BASE} = $self->layout_base_dir;
179
my ($site_libs) = $self->slurp_command(
180
$self->layout_perl, '-MConfig', '-e',
181
'print join(",", @Config{qw(sitearch sitelibexp)})'
@@ -501,7 +502,8 @@ sub show_config_libspec {
501
502
503
sub run_named_config_add {
504
my ($self, $type, $name, $value) = @_;
- barf "plx --config ${type} add <name> <value>" unless $name and $value;
505
+ barf "plx --config ${type} add <name> <value>"
506
+ unless $name and defined($value);
507
unless (-d (my $dir = $self->layout_config_dir($type))) {
508
mkdir($dir) or die "Couldn't make config dir ${dir}: $!";
509
0 commit comments