glob() in Kernel::Config::Defaults

Hi, in sub new() in Kernel::Config::Defaults (around line 2077), glob() is used: my @Files = glob("$Self->{Home}/Kernel/Config/Files/*.pm"); At least on FreeBSD 6.3 w/ Perl 5.8.8, glob() does not always return a sorted array. So I suggest the usage of sort: my @Files = sort glob("$Self->{Home}/Kernel/Config/Files/*.pm"); Background: I wrote some modules, which come along with their own config files. These have to override some values that are loaded by ZZZAAuto.pm. Felix

Hi Felix, many thanks for feedback. I'll verify this and come back...! :) -Martin On Jan 30, 2008, at 19:37 , Felix J. Ogris wrote:
Hi,
in sub new() in Kernel::Config::Defaults (around line 2077), glob() is used:
my @Files = glob("$Self->{Home}/Kernel/Config/Files/*.pm");
At least on FreeBSD 6.3 w/ Perl 5.8.8, glob() does not always return a sorted array. So I suggest the usage of sort:
my @Files = sort glob("$Self->{Home}/Kernel/Config/Files/*.pm");
Background: I wrote some modules, which come along with their own config files. These have to override some values that are loaded by ZZZAAuto.pm.
Felix
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
participants (2)
-
Felix J. Ogris
-
Martin Edenhofer