s0ttle has asked for the wisdom of the Perl Monks concerning the following question:
I want to take the above data and assign it to @contents belowmy $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();
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.unshift (@contents, $header, $entry);
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.$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 ";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Assigning CGI object data
by Ovid (Cardinal) on Dec 29, 2001 at 04:28 UTC | |
by s0ttle (Scribe) on Dec 29, 2001 at 04:52 UTC |