in reply to Can't use string ("16") as a HASH ref while "strict refs" in use
can be replaced by:my @chr_temp=split //,$arr[0]; for(1..3) { shift(@chr_temp); } $arr[0]=join("",@chr_temp);
Now as to our problem: Are you sure, there isn't a typo in$arr[0] = substr($arr[0], 3);
and you really meant$site_info{$arr[0]{$arr[1]}}{"value"}=$arr[3];
$site_info{$arr[0]}{$arr[1]}{"value"}=$arr[3];
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't use string ("16") as a HASH ref while "strict refs" in use
by thudzj (Initiate) on Aug 23, 2012 at 02:55 UTC |