On Feb 4, 2008 10:05 PM,  <[EMAIL PROTECTED]> wrote:
> Hi
>
> i am not able to declare hases
>
> first i tried this
>
> *************************************
> use strict
> my %familyname;
> $familyname{"mark"}="antony";
> ****************************************
> and i get an error "Global symbol "%familyname" requires explicit
> package name"
>
> next i tried
> **************************************
> use strict
> my %hash = ("a" => 1, "b" => 2, "c" => 3);
> ****************************************
> for this i get "Unknown 'strict' tag(s) 'a 1 b 2 c 3'"
>
> i am not able to get hash working please help me out
>
> Thanks in advance
>
>

You have: use strict

When it should be:

use strict; # <-- notice the semicolon...

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


  • Hashes t1279k
    • Re: Hashes Omega -1911

Reply via email to