Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use v5.26; my %hash = (); $hash{name} = 'Michelle'; $hash{age} = 22; $hash{city} = 'Austin'; say "@{[%hash]}";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print the contents of a hash without looping.
by LanX (Saint) on Dec 01, 2017 at 20:51 UTC | |
by shmem (Chancellor) on Dec 02, 2017 at 11:40 UTC | |
by BillKSmith (Monsignor) on Dec 02, 2017 at 04:23 UTC | |
| |
|
Re: Print the contents of a hash without looping.
by 1nickt (Canon) on Dec 01, 2017 at 21:12 UTC | |
|
Re: Print the contents of a hash without looping.
by poj (Abbot) on Dec 01, 2017 at 20:57 UTC | |
|
Re: Print the contents of a hash without looping. (template)
by LanX (Saint) on Dec 02, 2017 at 20:16 UTC |