in reply to Resizing image

Make your life easier by using the qq() operator.

print qq(<img src="http://myserver/image.gif" width="500" height="60"> +\n);

Also a good idea to get into the habit of quoting all attributes as that's what XHTML requires.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re: XHTML
by FamousLongAgo (Friar) on Oct 30, 2002 at 14:37 UTC
    For that matter, correct XHTML would require a close tag and the mandatory alt attribute:

    <img src="foo.gif" width="10" height="10" alt="Foo" />

    A little picky, but once you get in the habit, very easy to do.

      Absolutely right. I usually just throw my output thru HTMLTidy to catch errors like that.

      --
      <http://www.dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg