Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Perl
Hi
 
Is there any way to check whether there is any subfolder exist inside a parent folder. I would like to do this in Perl?
Posted 8-Jul-12 21:03pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

use File::Find;
OR
#find /parent/directory/ -type d
 
my @dirs = split(/\n/,`find /from/this/place/on -type d`);
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 360
1 Abhinav S 260
2 Nirav Prabtani 252
3 Dave Kreskowiak 155
4 Pikoh 140
0 OriginalGriff 7,545
1 Sergey Alexandrovich Kryukov 6,757
2 Maciej Los 3,909
3 Peter Leow 3,693
4 CHill60 2,712


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100