Thanks for the help with the reverse if and else.  I
ended up <sigh> using a single line forward if on a
single line.  Now my next question.  I'm using a jumbo
here tag (I think that's what they're called) to add
html to a string.  I need to use a variable within the
tag (done this before, no problem) but I need to have
text immediately following the variable name.  How do
I tell Perl that the text is not part of the variable
name?  Here's my code:

sub print_html_beginning
{
    my $html_ref = shift(@_);
    my $get_to_index = shift(@_);
    ${$html_ref} .= <<"___HTML___";
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd";>
<html class="white_on_black">
  <head>
    <meta HTTP-EQUIV="content-type"
      CONTENT="text/html; charset=iso-8859-1">
    <title> Hotspot Tracker </title>
    <LINK REL=StyleSheet
HREF="$get_to_indexcss/hotspot.css" TYPE="text/css"
     MEDIA="screen">

in the link tag Perl thinks the var name is
$get_to_indexcss...

Thanks.  ~Frank


                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to