Hi all,
I am experiencing some weirdness inside my if/elsif/else block. The "if" condition is returning false and falling through even though the file being checked in the "if" condition does exist. Any ideas?
use strict; my $line; if ( -e "/usr/www/htdocs/images/items/350/$itemid.jpg") { $line .= "http://www.store.com/images/items/350/$itemid.jp +g"; } elsif ( -e "/usr/www/htdocs/images/items/215/$itemid.jpg" ){ $line .= "http://www.store.com/images/items/215/$itemid.jp +g"; } else { $line .=""; }
In reply to -e falling through by slinky66
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |