Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Improve readability of Perl code. Naming reference variables.

by hakonhagland (Scribe)
on Jan 19, 2017 at 20:05 UTC ( [id://1179933]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $var_href = { a => 1 };
    
  2. or download this
      $var_aref = [ 1, 2, 3];
    
  3. or download this
    $var = [ 1, 2, 3 ];
    
  4. or download this
    $var_aref = [ 1, 2, 3 ];
    
  5. or download this
    my $var;
    
  6. or download this
    my $var_aref;
    
  7. or download this
    my @array = $var->@*;
    
  8. or download this
    my $var->@;
    
  9. or download this
    my $var;
    
  10. or download this
    $var->@  = 12;
    
  11. or download this
    $var->@ = [ 12 ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://1179933]
Front-paged by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-09-11 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (15 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.