[Chester LUG] Any perl gurus out there ?
Stuart Burns
stuart.james.burns at gmail.com
Sun Nov 23 21:15:22 UTC 2008
Hi Everyone,
I am in the process of learning perl but need to finish a program quickly
but am stuck on something. I am in the process of creating a very simple
script to create a gallery from random files and urls. To expand a bit, what
I am trying to do is the following:
read in a file that is in the following format:
1.jpg|http://www.site1.com/
2.jpg|http://www.site2.com/
etc all the way up to 500
Then, randomly choose 20 of the images, and put them into a variable so I
can spit them out into the format:
<a href="http://www.site1.com/"><Img src="1.jpg"></a>
Can anyone please help me with this. The main problem I am having is
splitting up the file with the source information in it, as I dont know how
to read it into an array and split it.
Any help appreciated.
Stu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/chester/attachments/20081123/636b26bb/attachment.html>
More information about the Chester
mailing list