sub read_plugins { my $plugins_file = io(shift); my @plugins = grep { s/^([\+\-]?[\w\:]+)\s*$/Å©/; } $plugins_file->slurp; return @plugins unless grep /^[\+\-]/, @plugins or not @plugins; my $filename = $plugins_file->filename; die "Can't create plugins list" #Zeile 46 unless -e "../$filename"; my $updir = io->updir->chdir; my @parent_plugins = $self->read_plugins($filename); for (@plugins) { my $remove = $_; $remove =~ s/^\-// or next; @parent_plugins = grep {$_ ne $remove} @parent_plugins; } my %have; @have{@parent_plugins} = ('1') x @parent_plugins; return @parent_plugins, grep { not /^\-/ and do { s/^\+//; not $have{$_}; } } @plugins; }