Thanks Stas that worked a treat, except that your call to File::Basename::basename
should be File::Basename::dirname The strange reversion to "/" seems to have been cured too. Colin __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com