Code Comments
Programming Forum and web based access to our favorite programming groups.Hi,
can someone pls help explain how I can check if a variable contains a string
or if it's empty. I tried
if ($var =~ //){
do something;
}
but it seems not to actually check for empty varaibles because some varibles
containing nothing where able to pass this if condition, which normally sho
uldn't.
Secondly, How can I get to print the values of an array to be displayed on a
HTML file. E.g
@arr = qw(One Two Three Four);
print << "VAR_VALUES";
Content-type: text/html
<HTML>
<HEAD>
<TITLE>Values Entered</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=5>Here are the values entered:</FONT></P>
#How can I print the elements of the array @arr
</BODY>
</HTML>
VAR_VALUES
Thanks
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.