The data is retrieved from a tab-separated text file. You can visit the results at this address: http://www.1604.ca/cgi-bin/spanish.pl

You'll notice that if I check for the existence of the image file, Perl does not see it. But the image is in fact there by looking at the next column where I don't check for its existence.

Here's more of my code:
for $i ( 0 .. 23 ) { $tit=$info[$i]{'TIT'}; $mfr=$info[$i]{'MFR'}; $mes=$info[$i]{'MES'}; $c="$dpmg/$mes.$epng"; if (-e $c) { $c2="<IMG src='$c'>"; } else { $c2="<IMG src='$dimg/_x2.png'>"; } $d="$dpmg/$mes.$epng"; $d2="<IMG src='$d'>"; $e="$dpud/$mes.$eaud"; if (-e $e) { $e="$daud/$mes.$eaud"; $e2="<IMG src=\"$dimg/_v1.png\" onclick=\"au.src='$e'; au.play() +;\" >"; } else { $e2="<IMG src='$dimg/_v0.png'>"; } print "<DIV>$tit</DIV> <DIV>$mfr</DIV> <DIV>$mes</DIV> <DIV cla +ss='fn'>$c</DIV> $c2 <DIV class='fn'>$d</DIV> $d2 $e2 <BR>\n"; }

In reply to Re^2: -e not working Perl 5.008008 by GLJSD
in thread -e not working Perl 5.008008 by GLJSD

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.