Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: "Correct" program style questions

by blssu (Pilgrim)
on Oct 24, 2002 at 15:25 UTC ( #207748=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $_name     = param('name')    || '';
      my ( $name )  = $_name  =~ /^([[:alpha:][:punct:][:space:]]+)$/;
    
      my $_color    = param('color') || '';
      my ( $color ) = $_color =~ /^([[:alpha:]]+)$/;
    
  2. or download this
      package MyApp;
      use strict;
      $MyApp::data_dir = "/usr/local/data";
    ...
      $MyApp::db_password = "secret";
      ...
      1;
    
  3. or download this
      #!perl
      handler(CGI->new);
      sub handler {
         my($q) = @_;
         ...
      }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-07-10 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls