in reply to File::Spec splitdir

Seems like you could just use join here:

my @dirs = File::Spec::Win32->splitdir($directories); my $delimiter = '!!SPLORG!!'; print join($delimiter, @dirs) . "|$Name"; print "\n";
You can also better write your declaration as:
my ( $volume, $directories, $file ) = File::Spec::Win32->splitpath( $P +ath );
Hope this helps!

The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: File::Spec splitdir
by davidinottawa (Initiate) on Oct 26, 2015 at 17:50 UTC
    Thank you very much for the reply - it works perfectly! I should've known about join function - I don't use Perl as much as I used to. Appreciated!