in reply to
Re^6: issues displaying cgi script source?
in thread issues displaying cgi script source?
Alas, there's the rub. You're offering this script for download as well. While it may not work for your machine, it may work elsewhere. Thus I have to say it: fix your damn code!
How do you extract only the file? Glad you asked:
my $file = "../this/is/a/problem/file.pl";
$file = (File::Spec->splitpath($file)) if $file;
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1