Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Website navigation system

by john1987 (Acolyte)
on Jan 29, 2001 at 06:00 UTC ( [id://54930]=CUFP: print w/replies, xml ) Need Help??

This is a small program that I made that I will be using for my website. It is a VERY simple code that took me 5 minutes to write. You may use it for whatever you may want to use for it. You can add, redo, or take away from it (very little to take away). Your welcome to call it your own.
#!/usr/bin/perl -w use CGI qw(:standard); use strict; #always! my $location = param("place"); print header; my %subs = ( 'home'=>\&home, 'news'=>\&news, ); if (!$location){ &home }elsif (defined(my $action = $subs{$location})){ $action->(); } sub home{ print "this is home. I am John, hear me roar"; } sub news{ print "this is news"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://54930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2026-02-16 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.