On Fri, 15 Dec 2006, Mumia W. wrote:

On 12/15/2006 09:44 AM, Lou Hernsen wrote:
I use the -e to check to see if a file is present

  if (-e "$Pics/$Game{Page}.jpg")
  {
   }

Question
I can get it to work looking for .pl and .gif but not .jpg
[...]

Read "perldoc -f -e"

-e tests if a file is executable.

Use -f to test if the file is there.


HUH, -e tests if file exists

-f tests if it exists and is a regular file


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to