in reply to Improve readability of Perl code. Naming reference variables.
I think, the programmer should have a choice to decide whether he finds it advantageous to include the suffix at given place or not.
Since we are dealing with references here then the programmer clearly does have that choice. viz:
#!/usr/bin/env perl use strict; use warnings; my $var = [1, 3, 5]; my $var_aref = $var; print "var has values: @$var\n"; print "var_aref has values: @$var_aref\n";
So you, the programmer, can pick and choose which name to use at any point (if you so desire).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Improve readability of Perl code. Naming reference variables.
by hakonhagland (Scribe) on Jan 20, 2017 at 08:52 UTC |