john1987 has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for all of your help. Later. -john#!/usr/bin/perl use CGI qw(param standard); use strict; my $query = new CGI; my $location = $query->param("place"); print $query->header; # im jus doing 2 for quickness if (!$location){ &home } elsif ($location eq ("news")){ &news } sub home{ print "this is home"; } sub news{ print "this is news"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: efficiency
by runrig (Abbot) on Jan 26, 2001 at 04:57 UTC | |
by john1987 (Acolyte) on Jan 26, 2001 at 06:14 UTC | |
|
Re: efficientcy
by chromatic (Archbishop) on Jan 26, 2001 at 04:51 UTC | |
by john1987 (Acolyte) on Jan 26, 2001 at 06:13 UTC | |
|
Re: efficientcy
by repson (Chaplain) on Jan 26, 2001 at 06:59 UTC | |
|
Re: efficiency (Spelled it wrong :-)
by damian1301 (Curate) on Jan 26, 2001 at 09:21 UTC | |
by Yohimbe (Pilgrim) on Jan 26, 2001 at 22:24 UTC |