Perl_Man
asked on
Append to a variable
How do I have perl append to a variable? I have tried this with no luck. The way I need my script to run is if the variable = ON then append the JavaScript command to $options (at the end). This script I am making is a JavaScript wizard type app, it will create Pop Up menus 4 u.
if ($menubar eq "ON") {$options. = "menubar,";}
if ($toolbar eq "ON") {$options. = "toolbar,";}
if ($location eq "ON") {$options. = "location,";}
if ($directories eq "ON") {$options. = "directories,";}
if ($status eq "ON") {$options. = "status,";}
if ($scroolbars eq "ON") {$options. = "scroolbars,";}
if ($resizable eq "ON") {$options. = "resizable";}
thanks
if ($menubar eq "ON") {$options. = "menubar,";}
if ($toolbar eq "ON") {$options. = "toolbar,";}
if ($location eq "ON") {$options. = "location,";}
if ($directories eq "ON") {$options. = "directories,";}
if ($status eq "ON") {$options. = "status,";}
if ($scroolbars eq "ON") {$options. = "scroolbars,";}
if ($resizable eq "ON") {$options. = "resizable";}
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER