Can any one help me out to sort the following error:
I get the error "Global symbol "$pno1" requires explicit package name at insertintohash line 9. Execution of insertintohash aborted due to compilation errors."
when I run the following script:
#! /usr/bin/perl 2 use warnings; 3 use strict; 4 my %pno1 = { 5 Hari => "1111", 6 Veni => "2222", 7 Kris => "3333" 8 }; 9 print " $pno1(Hari) \n"; 10 $pno1{chitty} = "9880617016"; 11 $pno1{JK} = "01862525"; 12 print $pno1{chitty}, "\n"; 13 #print %pno, "\n"; 14