Perl Script Image Help
Hi there,
How do I insert an image into a perl script? The line below is what I thought but I was totally wrong.
print "";
When the script runs I want it to display the image WhiteStouffa.gif at the top of the screen.
Any ideas?
Steve
Wil posted this at 13:44 — 19th February 2002.
They have: 601 posts
Joined: Nov 2001
Because the syntax used by HTML markup, Perl is getting confused by your choice of string terminator. How about this instead?
print qq|<center><img src="http://www.stouffa.co.uk/WhiteStouffa.gif"></center>\n|;
That's all I've done is indicated to perl through the use of "qq" that I will be specifying a different delinator - in this case the pipe | character - which is never used in HTML [?].
Hope this helps.
- wil
webmastersteve posted this at 22:24 — 19th February 2002.
They have: 43 posts
Joined: Dec 2000
that is exactly why this web site is so fantastic!
it worked, cheers mate
Steve
http://www.stouffa.co.uk
Wil posted this at 09:33 — 20th February 2002.
They have: 601 posts
Joined: Nov 2001
You're welcome!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.