S
shao
Hi, I am a newbie to perl programing.
I am trying to map a hash out into disk file.
This is the sample I tried:
dbmopen(%last_good,"lastdb",0666) || die "Failed dbmopen: $!";
$last_good($name) = time;
dbmclose(%last_good);
But I keep getting this error:
syntax error at lesson4.pl line 21, near "$last_good("
Can anyone please tell me what I did wrong?
I am trying to map a hash out into disk file.
This is the sample I tried:
dbmopen(%last_good,"lastdb",0666) || die "Failed dbmopen: $!";
$last_good($name) = time;
dbmclose(%last_good);
But I keep getting this error:
syntax error at lesson4.pl line 21, near "$last_good("
Can anyone please tell me what I did wrong?