in reply to Re^2: Get newest folders inside directory
in thread Get newest folders inside directory
In the quotes before the '*'. If you're on win, you might want to include a drive specifier in there also: glob 'c:/*'
@newest = (sort{ -M $a <=> -M $b } grep -d, glob '/*' )[0..19];;
Also look at -A & -C as applicable on your OS.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Get newest folders inside directory
by shekarkcb (Beadle) on Nov 10, 2010 at 06:42 UTC | |
by BrowserUk (Patriarch) on Nov 10, 2010 at 08:22 UTC | |
|
Re^4: Get newest folders inside directory
by Anonymous Monk on Nov 09, 2010 at 23:53 UTC |