in reply to Re^2: Breaking file path into segmentsin thread Breaking file path into segments
Unless you work on a RedHat based Linux distribution where you need to install the perl-PathTools package. Installing perl-Path-Tiny is comparably complex.