biswanath_c has asked for the wisdom of the Perl Monks concerning the following question:
$input_folder = $ARGV[0]; print "input : $input_folder \n"; @inp_files = glob("$input_folder" . "\\*.*"); foreach $inp(@inp_files) { print "$inp" . "\n"; @filename = split(/\\/, "$inp"); $levels = scalar @filename; my $name = $filename[$levels - 1]; print "\t\t\t File Name : $name \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spaces in folder names...
by ikegami (Patriarch) on Oct 14, 2009 at 01:59 UTC | |
by biswanath_c (Beadle) on Oct 14, 2009 at 03:55 UTC | |
|
Re: Spaces in folder names...
by swampyankee (Parson) on Oct 14, 2009 at 02:20 UTC | |
by ikegami (Patriarch) on Oct 14, 2009 at 04:02 UTC | |
by swampyankee (Parson) on Oct 14, 2009 at 20:45 UTC |