nikolay has asked for the wisdom of the Perl Monks concerning the following question:
How to do that? Using additional variable i do it somy $q='qwer'; my @a=( \$q );
How to do the same w/o additional variable. Reading PERL documentations did not reveal me the secret of syntax of the case. Thanks for advice.my $a=$a[0]; print "$a\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to dereference array of ref.s?
by Discipulus (Canon) on May 20, 2018 at 14:46 UTC | |
by haukex (Archbishop) on May 20, 2018 at 18:14 UTC | |
by nikolay (Beadle) on May 20, 2018 at 15:00 UTC | |
|
Re: How to dereference array of ref.s?
by Arunbear (Prior) on May 20, 2018 at 14:49 UTC | |
by nikolay (Beadle) on May 20, 2018 at 15:02 UTC | |
|
Re: How to dereference array of ref.s?
by johngg (Canon) on May 20, 2018 at 14:53 UTC |