davidinottawa has asked for the wisdom of the Perl Monks concerning the following question:
The input looks like this :use File::Spec::Win32; while (<INPUT>) { #split the on pipe ($Name,$Size,$LastChangeDate,$LastAccessDate,$CreatedDate,$Exte +nsion,$Path) = split(/\|/, $_); (my $volume, my $directories, my $file ) = File::Spec::Win32->s +plitpath( $Path ); my @dirs = File::Spec::Win32->splitdir($directories); print "@dirs|$Name"; print "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Spec splitdir
by 1nickt (Canon) on Oct 26, 2015 at 15:54 UTC | |
by davidinottawa (Initiate) on Oct 26, 2015 at 17:50 UTC | |
|
Re: File::Spec splitdir
by mr_ron (Deacon) on Oct 26, 2015 at 17:19 UTC | |
by davidinottawa (Initiate) on Oct 26, 2015 at 17:51 UTC |