slurch901 has asked for the wisdom of the Perl Monks concerning the following question:
It works without any type of conditional statement, but as its in a#!/usr/bin/perl -w use CGI; use CGI ":standard"; $cgi = new CGI; print $cgi->header(), $cgi->start_html(), $cgi->div({-id=>pagewrap}, if($index==0) { $cgi->p("Hello"), } ), $cgi->end_html();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conditional statements in CGI/Div
by golux (Chaplain) on Jan 13, 2013 at 18:07 UTC | |
by slurch901 (Initiate) on Jan 13, 2013 at 21:18 UTC | |
by glasswalk3r (Friar) on Jan 14, 2013 at 10:57 UTC | |
|
Re: Conditional statements in CGI/Div
by NetWallah (Canon) on Jan 13, 2013 at 22:24 UTC | |
|
Re: Conditional statements in CGI/Div
by Khen1950fx (Canon) on Jan 13, 2013 at 21:17 UTC | |
|
Re: Conditional statements in CGI/Div
by blue_cowdawg (Monsignor) on Jan 14, 2013 at 14:27 UTC | |
by slurch901 (Initiate) on Jan 27, 2013 at 23:18 UTC | |
|
Re: Conditional statements in CGI/Div
by Your Mother (Archbishop) on Jan 27, 2013 at 23:31 UTC |