Why did you comment out the use warnings statement?
Why aren't you using the strict pragma?
Why are you capturing and returning the exit code of your system call in the new_path sub, but call the sub in void context?
Why are you using the system call to del when Perl has the built-in command unlink for deleting files?
Wouldn't it be easier to capture the output of the cleartool command in the script rather than sending it to a file that you then need to open/process?
Your method of populating and processing the @dirlist could be dramatically improved by the use of the File::Find module.
Here are a few warnings that your script will generate.
Unquoted string "element" may clash with future reserved word.
Name "main::d" used only once: possible typo
Name "main::date" used only once: possible typo
Name "main::time" used only once: possible typo
Main Topics
Browse All Topics





by: jasonsbytesPosted on 2007-06-28 at 10:00:00ID: 19382557
assuming: ile\file.j pg';
g'
$file = 'M:\viewname\application\f
$newFile = $file;
$newFile =~ s/^M:\\viewname//;
$newFile would then be equal to: '\application\file\file.jp