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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -