in reply to Email and filenames

Instead of  Path     =>'$fileName', try
Path =>"$fileName",

I believe the single quotes are forcing this to a literal

Replies are listed 'Best First'.
Re: Email and filenames
by Abigail (Deacon) on Jul 06, 2001 at 02:59 UTC
    Or, even better, don't use quotes if all you have is a single scalar. Quoting would bite you hard if the scalar contained a reference.

    -- Abigail