Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 exploiting the Monastery: (7)
As of 2015-07-02 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls