perl - Obtain reference from keys() -


i have array :

my @y = keys(%{$table->{fields}}); 

i'd have reference of array :

$columns = \@y; 

is there way operation on single line ?

yes, can assign $columns anon array reference,

my $columns = [ keys %{$table->{fields}} ]; 

Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -