Hello, I've read the raw mime FAQ (http://www.tek-tips.com/gfaqs.cfm/lev2/4/lev3/32/pid/219/fid/2901) and understand everything except the way in which you actually print the different types of attachments. Let's say you want to attach a .gif. Once you set the Content-Type and disposition, does...
...if I do this:
foreach $_(keys %beverage) {
$beverage = $beverage{$_};
print "$_ => $beverage{$_}\n";
}
it will return:
coffee => Folgers
tea => Lipton
milk => DairyFresh
...but outside the loop, if I do this:
print $beverage;
if the chosen value was coffee, it still prints DairyFresh...
Hi,
In my form I have a select box with the name="beverage".
I have 3 options: coffee, tea and milk. I have in my script set up an associative array:
$beverage = param('beverage');
%beverage = (coffee => 'Folgers',
tea => 'Lipton',
milk => 'DairyFresh');
foreach...
Hi, I'm setting cookies, and reading them just fine, but how do I delete a cookie. I'm setting the cookie via the print header(-cookie => $cookie); method. Do I just overwrite it, or what? I tried delete(cookie('name')), unlink(cookie('name')) and several others, but to no avail. I've read...
I'm trying to come up with a Perl back button in my scripts. I know using the referer will produce this, and generally suits me fine, but sometimes I want to return to the prior invocation of my script and retain the exact state it was in. So, using the self_url() returns the current state of...
If I have a variable such as $data ($data will be a string of text), and:
if (substr($data, 0) > 30) {
do something;
}
obviously, this does not work.
What am I missing?
Hi, let's say I have:
@numbers = qw/34 56 78 83 23 99 10/;
How can I find the "sum" of all the elements in the array?
I've tried pushing a "+" (plus sign) into the array and adding it up that way, but there has to be a better way.
The total is 383, but, I don't know the routine to follow to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.