Hi to all ! I'm new to this forum an as well as Perl scripting . My question is how to take Hash values from user using terminal in Perl.
my code is :
my%inputline = <STDIN>;
print %inputline;
it showing some error
Odd number of elements in hash assignment at until.pl line 199, <STDIN> line 1.
ram 47 nasdfi 47 klsdjf 258 dshafa 639
Use of uninitialized value $inputline{"ram 47 nasdfi 47 klsdjf 258 dsha"...} in print at until.pl line 202, <STDIN> lin
my code is :
my%inputline = <STDIN>;
print %inputline;
it showing some error
Odd number of elements in hash assignment at until.pl line 199, <STDIN> line 1.
ram 47 nasdfi 47 klsdjf 258 dshafa 639
Use of uninitialized value $inputline{"ram 47 nasdfi 47 klsdjf 258 dsha"...} in print at until.pl line 202, <STDIN> lin
Comment