G
Giancarlo
Hello,
I am able to program a little bit in perl and I can write cgi's that
make HTML pages whose content depend on the inputs of the visitors.
But that's all what I am able to do: I am not expert at all.
At this time I need to write a perl cgi that makes simple geometrical
images (they are very simple and may be black/white). I wonder how I
can do this in perl.
Actually I am able to do this in a very stupid way, that is: I have a
1 pixel white bmp file, and a 1 pixel black bmp file, and then I run a
perl cgi that makes a HTML page (!) placing side by side these images,
depending on the figure I need to build. For example:
<img src = white.bmp><img src = black.bmp><img src = white.bmp><img
src = white.bmp> and so on... and <br> at the end of the first row of
pixels.
Actually it works: the real imagine appears into the browser! It is
made of thousands of 1-pixel bmp files (white.bmp and black.bmp) that
are placed side by side.
I understand that this is a stupid way, but I am not able to do better
than this, due to my ignorance.
Can I do something better, provided that I can't study very much about
this matter? Is perl useful to do this, or should I use javascript?
But I don't know anything about it... Or even java? (I hope not).
Thanks for any suggestion (please write in a simple way, I don't know
perl very well).
Giancarlo
I am able to program a little bit in perl and I can write cgi's that
make HTML pages whose content depend on the inputs of the visitors.
But that's all what I am able to do: I am not expert at all.
At this time I need to write a perl cgi that makes simple geometrical
images (they are very simple and may be black/white). I wonder how I
can do this in perl.
Actually I am able to do this in a very stupid way, that is: I have a
1 pixel white bmp file, and a 1 pixel black bmp file, and then I run a
perl cgi that makes a HTML page (!) placing side by side these images,
depending on the figure I need to build. For example:
<img src = white.bmp><img src = black.bmp><img src = white.bmp><img
src = white.bmp> and so on... and <br> at the end of the first row of
pixels.
Actually it works: the real imagine appears into the browser! It is
made of thousands of 1-pixel bmp files (white.bmp and black.bmp) that
are placed side by side.
I understand that this is a stupid way, but I am not able to do better
than this, due to my ignorance.
Can I do something better, provided that I can't study very much about
this matter? Is perl useful to do this, or should I use javascript?
But I don't know anything about it... Or even java? (I hope not).
Thanks for any suggestion (please write in a simple way, I don't know
perl very well).
Giancarlo