in reply to Determining if file path is absolute

use Path::Tiny qw/ path /; $foo = path( $foo )->realpath;