I have a program that takes input from a form, splits it and saves the values in an array - $INPUT{field} I then create a NET::SMTP mail instance, and message is a string ($mymessage) in which I have inserted the form values. This is so that I can create a form which when submitted will send another form with part of the data in its fields. So my $mymessage looks like this (but alot longer)...
$mymessage='<HTML><HEAD></HEAD><BODY> <form name =formname> <BR> <input type = text name=whatever value=$INPUT{field_name}> etc then I want to pass the string through a regex so that it will espand all the $INPUT{field_name} occurances. I found a regex in the perldocs that will expand a variable -#$mymessage =~ s/(\$\w+)/$1/eeg; but it does not expand the {field_name}, so all I get in my emailed form boxes is {field_name}. Some help would be greatly appreciated, sorry that this email is so long, but it took me a long time to get to the point that the form would mail correctly etc, so I am quite excited about getting the details fixed, Thanks heaps in advance, Chris