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
In reply to Re: attach a prefix to a filename
by prasadbabu
in thread attach a prefix to a filename
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |