in reply to Re^2: Tutorial RFC: Guide to Perl references, Part 1
in thread Tutorial RFC: Guide to Perl references, Part 1
Because the reference looks like a plain scalar, e.g., $starwars one might be tempted to do arithmetic on it (in a module far, far away). $starwars += $Lucas
I use subroutine signatures when I can. Is there a way to require a reference in the signature? Is this in one of the later parts of your documentation?
I currently name the variable with a _ref at the end of the name as a reminder, e.g., $starwars_ref
Reading ahead, I now see that you use _aref, _href, _oref,and _sref.
Thank you, stevieb
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Tutorial RFC: Guide to Perl references, Part 1
by AnomalousMonk (Archbishop) on Jul 06, 2017 at 23:06 UTC | |
by choroba (Cardinal) on Jul 07, 2017 at 13:15 UTC |