in reply to Strange Behavior

This looks like an unimplemented stub. If the function were to delete a file, it would call unlink to do so.

I would expect this to print

default.Saw testtest
If the function is to return the file name, it should end with the $title variable (which ought to be declared my). As it is, it returns the value returned by sleep, 2 in this case.

# . . . sleep 2; $title; }

After Compline,
Zaxo