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 it to work looking for .pl and .gif but not .jpg > > I have checked all the directorie vars and even did this > > print qq|<img border=0 src="$Pics/Camera.gif" width="$Game{CameraW}" > height="$Game{CameraH}"><BR>|; > print qq|<BR>|; > print qq|<a target="$Game{Page}" href="$Pics/$Game{Page}.jpg">|; > print qq|<img border=0 src="$Pics/Camera.gif" width="$Game{CameraW}" > height="$Game{CameraH}"><BR>|; > print qq|</a>|; > print qq|<BR>|; > if (-e "$Pics/$Game{Page}.jpg") > { > print qq|<img border=0 src="$Pics/Camera.gif" width="$Game{CameraW}" In the above line do you mean to have '.jpg'? > height="$Game{CameraH}"><BR>|; > } > > I get the first two images but not the last one.. so I know i have the dirs > correct > are .jpg's not -e able??? > -e cares not and knows not of the type of file. > yeah.. i'm nonprofessional hobbiest .... my style suck... can someone answer > the question, please? Helps? http://danconia.org > Lou > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- ~Tyler -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>