sarshads has asked for the wisdom of the Perl Monks concerning the following question:
apple boy cat
but it printing in different waycat apple boy
Please find the following code
#!/usr/bin/perl use strict; use warnings; my %hash2=( a => "apple", b => "boy", c => "cat" ); my @keys=keys %hash2; foreach my $s (@keys) { print "$hash2{$s} "; }
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing Output in different way
by almut (Canon) on May 07, 2010 at 22:54 UTC | |
by sarshads (Novice) on May 07, 2010 at 23:07 UTC | |
|
Re: Printing Output in different way
by Marshall (Canon) on May 07, 2010 at 23:07 UTC | |
|
Re: Printing Output in different way
by toolic (Bishop) on May 08, 2010 at 01:19 UTC | |
|
Re: Printing Output in different way
by k_manimuthu (Monk) on May 08, 2010 at 04:32 UTC | |
|
Re: Printing Output in different way
by rev_1318 (Chaplain) on May 08, 2010 at 14:14 UTC |