As you say, your blocking is incorrect. Here's how to write that:
where I've added !-d to exclude directories. You might want to use -f instead to admit only regular files.@t_arr = grep { $var3 = (split /[_.]/)[2]; $var3 > $var1 and $var3 <= $var2; } grep { !-d and $_ !~ /^\./ } readdir(EVT_DIR);
After Compline,
Zaxo
In reply to Re^3: Extract the middle part of a list
by Zaxo
in thread Extract the middle part of a list
by chrism01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |