in reply to dir / file split

It can aid readability when matching *nix paths to choose a different regex delimiter.

$file_path =~ m{(.*)/(.*)};

Cheers,

JohnGG