in reply to attach a prefix to a filename

You can use the module File::Basename to accomplish your requirement

use File::Basename; my $tempvalue = "c:/reports/check/test.txt"; $file = basename($tempvalue); $path = dirname($tempvalue); $fullpath = $path.'/'.design.$file; print "$fullpath\n";

Prasad