in reply to Re: Extract the middle part of a list
in thread Extract the middle part of a list
Thx for both of those. I decided to go with Zaxo because it's simpler and works down the page (I think).
However, it's complaining about the curr/parent dir files (., ..) which i tried to fix, but I'm not good with these nested code layouts.
I tried:
and a couple of variations, but still get warnings:@t_arr = grep { grep { $_ !~ /^\./ } $var3 = (split /[_.]/)[2]; $var3 > $var1 and $var3 <= $var2; } readdir(EVT_DIR);
I also need to ignore any dirs that exist.Use of uninitialized value in pattern match (m//) at ./t.pl line 341. Use of uninitialized value in numeric gt (>) at ./t.pl line 345. Use of uninitialized value in pattern match (m//) at ./t.pl line 341. Use of uninitialized value in numeric gt (>) at ./t.pl line 345.
Cheers
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extract the middle part of a list
by Zaxo (Archbishop) on Jun 29, 2007 at 05:04 UTC | |
by chrism01 (Friar) on Jun 29, 2007 at 05:38 UTC | |
by doom (Deacon) on Jun 29, 2007 at 10:00 UTC |