Ticket #1134 (new enhancement)
refactoring: reference/dereference
| Reported by: | zenogantner | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Refactoring Perl 5 | Version: | 0.80 |
| Keywords: | Cc: |
Description
Example:
%hash = ( key1 => 'val1');
say $hash{key1};
function(\%hash);
to/from
$hash_ref = { key1 => 'val1'};
say $hash_ref->{$key1};
function($hash_ref);
The same for scalars and arrays.
Of course, there may be corner cases where this fails, but it would be neat to have such a tool...
Change History
Note: See
TracTickets for help on using
tickets.
