RE: Checking to see if file exists.



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

.



Relevant Pages

  • RE: Enable Perl Debugging at Run-Time
    ... however it would be neater if there was a command in perl ... It's a filter which removes 'debugging' code based on ... This particular script is one of many CGI's, so I don't have much scope ... code to 'self trace' and dump trace data to STDERR. ...
    (perl.beginners)
  • Re: Not able to open a file.
    ... Perl Express and I see that it is not running your script at all when you are ... debugging tools, and even renamed it beyond recognition. ... I'm sorry for keeping changing my mind, but I am slowly learning Perl Express. ... Perl menu and click on the Execution Directory item you will see an option ...
    (perl.beginners)
  • Re: How can I debug perl-xs code?
    ... > I am debugging a perl script on Linux OS which has a call to ... > function from perl code then I failed to debug the code. ...
    (perl.beginners)
  • Re: DBI 1.45 and perl 5.8.2 - bug 24463
    ... > threads and debugging enabled which causes a DBI test to fail. ... The perl bug is in thread creation and unrelated to the DBI. ... Configuring both is even worse. ...
    (perl.dbi.users)
  • Re: debugging/ NTDLL.DLL/ and more
    ... Reordered for better debugging ... Here filename is not a valid pointer, however the failure indicates that ... unsigned char *LoadBitmapFile(const char* const filename, BITMAPINFOHEADER* ...
    (microsoft.public.vc.language)