File::Spec->file_name_is_absolute(path)
path
Takes a path as argument and returns true if it is an absolute path.