I have just started using perl, and i have to say i am impressed.
I am designing a webpage that generates messages to a large amount of customers, using the mail() function.
Almost everything is done but i have one final problem to complete my page.
When i generate my e-mail i want to include the contents of 3 files. There is no problem opening the files and getting the contents, but i want one variable containing all the output from the three files (variables).
like this:
$content1 (is now containing the contents of textfile1)
$content2 (ditto textfile2)
$content3 (ditto textfile3)
if i echo all the three variables to the page (seperately), everything works fine. My problem is that i want to pass all three values to a forth variable.
$everything = $content1,$content2,$content3
echo $everything (this should display the contents of all three files)
i have tried the example above, dont work
i have also tried && and + etc but i dont work.
Hopefully you guys understand what im after.
I usually program in vb, and i could include a vb example of what i want if that is easier..
Dim var1
Dim var2
Dim var3
Dim all
var1 = "test"
var2 = "test2"
var3 = "test3"
all = var1 & var2 & var3
response.write all
Would give the output:
testtest2test3 (which is what i want..)
This should be pretty basic, but afterall im in the newbie section lol 🙂
Thanks in advance.
Best Regards