Re: -e question

2006-12-15 Thread Res
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

Re: -e question

2006-12-15 Thread Mumia W.
On 12/15/2006 11:00 AM, 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 i

Re: -e question

2006-12-15 Thread Mumia W.
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

Re: -e question

2006-12-15 Thread Tyler Gee
On 12/15/06, Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: Lou Hernsen wrote: > I use the -e to check to see if a file is present > > if (-e "$Pics/$Game{Page}.jpg") Are you sure this is interpolating correctly? Try if( -e "$Pics/".$Game{Page}.".jpg") > { >} > > Question > I can get

Re: -e question

2006-12-15 Thread Wiggins d'Anconia
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 I have checked all the directorie vars and even did this print qq||; print qq||; print qq||; print qq||;

-e question

2006-12-15 Thread Lou Hernsen
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 I have checked all the directorie vars and even did this print qq||; print qq||; print qq||; print qq||; print qq||; print