in reply to Re: Re: how do I shorten code
in thread how do I shorten code
Theoretically, you should be able to do something similar on case sensitive systems.
my @list = grep( -M < 1 } glob "$dir/b*.txt $dir/B*.txt";
I say theoretically as I don't such a system to test it on, but the multiple args in a string seems to work ok. Of course if its not just the 'B' that can vary case, then enumerating all the Txt TXt TXT tXT txT TxT tXt etc. isn't going to shorten anything:)
|
---|