perl.beginners
[Top] [All Lists]

RE: Checking to see if file exists.

Subject: RE: Checking to see if file exists.
From: shawnhcorey@xxxxxxxx (Mr. Shawn H. Corey)
Date: Tue, 29 Jul 2008 22:56:47 -0400
Newsgroups: perl.beginners

On Tue, 2008-07-29 at 19:49 -0700, tvadnais wrote:
> Oops, thank you for catching that... I haven't gotten that far in my
> debugging.
> 
> Unfortunately, my problem was with the "if (-e $filename)" always returning
> false.  In the code I'm testing, I have the pgp commented out, because I
> can't actually unencrypt the files because pgp can only be run by root.

If you have part of the code commented out, are you sure it is doing
what you think it's doing?  Run thru the debugger again and immediately
after the fail switch to another terminal and check to see if the file
really does exists.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


<Prev in Thread] Current Thread [Next in Thread>