Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Basic Coding Tips: Parsimonious Parameterization

by dimar (Curate)
on Jan 28, 2005 at 20:54 UTC ( #426104=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    ### This is nice and compact, but what happens if you
    ### add new variables? You have to remember to keep count.
    ### A more parsimonious example
    my $a = my $b = my $c = 'TRUE';
  2. or download this
    my  $User  = {};
    $User->{never_used_site_before} = '1';
    $User->{lname}      =   '';
    $User->{password}   =   '';
    $User->{age}        =   '0';

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://426104]
Approved by itub
Front-paged by Old_Gray_Bear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-10-24 21:11 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (310 votes). Check out past polls.