Hi......

Thanks Rob,with ur code ,Now I can display all the countries with
regions.Now i would like to display only countries specific to the region.
We can split the data and assign into two different arrays.Let me know is
there any specific way to retrive the data ??
Thanks a lot........




#! /usr/perl/bin
use strict;
my %Regions = (
 Europe => [
   'Belgium',
   'Denmark',
   'France',
   'Germany',
   'Great Britain',
   'Hungary',
   'Portugal',
   'Russia',
   'Spain',
   'Sweden',
   'Turkey',
 ],
 Asia => [
   'Australia',
   'China',
   'India',
   'Malaysia',
   'NewZealand',
   'Philippines',
   'South Africa',
   'Taiwan',
   'Vietnam',
 ],
 North => [
   'U.S.',
   'Canada',
   'Mexico',
 ],

 South => [
   'Argentina',
   'Brazil',
   'Venezuela',
 ],
);


 foreach my $countries ( keys %Regions ) {
     print "$countries: @{ $Regions{$countries} }\n"
 }


On 7/8/08, Dr.Ruud <[EMAIL PROTECTED] <[EMAIL PROTECTED]>>
wrote:
>
> "elavazhagan perl" schreef:
>
> > #Start
> > #! /usr/local/perl/bin
> > use strict;
>
> The shebang-line should be the first one.
> "use warnings;" is missing.
>
> --
> Affijn, Ruud
>
> "Gewoon is een tijger."
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>

Reply via email to