in reply to Check if dir exist using regexp
$s = 241; $v = 73; @found = grep { -d $_ && m/$s\.$v_\w+/ } glob "/some/dir/*"; # DO STUFF WITH @found matches
---
echo S 1 [ Y V U | perl -ane 'print reverse map { $_ = chr(ord($_)-1) } @F;'
Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.
|
|---|