the following prog. i was trying but after entering the value alpha or anything generates an error that goes like : use of uninitialised value within %lop in conactenation or string at ...".please help.is there any problem with using the value obtained in scalar via <STDIN>??
Code:
use warnings; use strict; my $k; my %lop=( alpha=>2143, beta=>456843, gamma=>78458, delta=>6453, theta=>4658); $k=<STDIN>; print"\n $lop{$k}";
Comment