Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Improve readability of Perl code. Naming reference variables.

by johngg (Canon)
on Jan 20, 2017 at 10:45 UTC ( [id://1179987]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $rsSomeValue = \ do { my $val = 42 };   # scalar ref
    my $raCats = [ qw{ Tiddles Desmo Felix } ] # array ref
    ...
    my $rcDoIt = sub { return $_[ 0 ] * 3 };   # code ref
    my $rxPat = qr{abc};                       # regexp ref
    my $roObj = Some::Pkg->new()               # object ref
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179987]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-16 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found