Opened 4 years ago

Last modified 4 years ago

#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 (1)

comment:1 Changed 4 years ago by szabgab

  • Component changed from advanced perl tools to Refactoring Perl 5
Note: See TracTickets for help on using tickets.