Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 chilling in the Monastery: (5)
As of 2016-04-30 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.