Processing a <pic>
| # a picture elsif ($type eq "pic") { # interrupt bullet list if we're in one if ($didUL) { print Out "</UL>"; } # the href= attribute has the picture's URL copy("$_{href}","$showdir/.") || die "cannot copy file"; print Out "<p align='center'><IMG SRC='$_{href}'></IMG></p>"; if ($didUL) { print Out "<UL>"; } } |