Those will help figure out exactly what your code is doing. Once we see the results of that it will be easier to offer help.print "Start: \$file = $file\n"; my($thebase) = ($file =~ /(.*)\/[^\/]+/); print " \$thebase = $thebase\n"; my($html,$html2); print "Just before test to see if \$file exists\n"; if (!-e $file){ print "$file does *NOT* exist!\n"; $thebase =~ s/\/[^\/]+$/\/default/; print "\$thebase *AFTER* substituting default = $thebase\n"; ### the rest of your code ###
In reply to Re: Trouble with path syntax
by hmerrill
in thread Trouble with path syntax
by diamich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |