Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 chanting in the Monastery: (15)
As of 2014-12-18 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (58 votes), past polls