Here is my snippet:
my $entry = CGI->new(); $entry->p($font_o,'---[', b('Handle: '),$gbdata->{'handle'},br(),'----[', b('Email: '),$gbdata->{'email'},br(),'-----[', b('Website: '),$gbdata->{'url'},br(),'------[', b('IP: '),remote_host(),':',server_port(), br(),'-------[', b('Browser: '),user_agent(),br(),'--------[', b('Date & Time: '),$time, br(),br(),'[', b('Message'),']',br(), hr(),$gbdata->{'comments'},br(),hr(),'</font>',), end_html();
I want to take the above data and assign it to @contents below
unshift (@contents, $header, $entry);
obviously that assignment will not give the desired results. My question is, how can I get my data into @contents? I previously had the raw html assigned to $entry like so.
$entry = " <P>\n <FONT FACE=\"Verdana\" SIZE=\"1\"> ---[<B>Handle:</B> $GBINFO{'handle'}<BR> ----[<B>Email:</B> $GBINFO{'email'}<BR> -----[<B>Website:</B> $GBINFO{'url'}<BR> ------[<B>IP:</B> $ENV{'REMOTE_ADDR'}:$ENV{'REMOTE_PORT'}<BR> -------[<B>Browser:</B> $ENV{'HTTP_USER_AGENT'}<BR> --------[<B>Date&Time:</B> $hour:$min:$sec $end $days[$day2] $months[$ +month] $day\, $year<BR> <B>[Message]</B><BR> <HR> $GBINFO{'comments'}<BR> <HR>\n </P>\n </FONT>\n ";
but I rewrote the whole thing using CGI and this is the only part that I am in conflict with, any/all help much appreciated.

In reply to Assigning CGI object data by s0ttle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.