Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I can't for the life of me figure out what the problem of this could be. From the snippet below does anyone have any ideas?
Thanks so much for your time.
my $rem = url_param("rem"); use DB_File; my %default; my $default = "default.db"; # location of database tie %default, "DB_File", "$default", O_CREAT|O_RDWR, 0644, or die "Oop +s! $!\n"; print header, start_html; if ($rem ne "") { if (exists $default{$rem}) { delete $default{$rem}; print "<center><font color=blue>The URL was removed successfully +.</font></center>"; } else { print "<center><font color=red>That URL was not found.</font></c +enter>"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash key removal problems
by sgifford (Prior) on May 04, 2004 at 16:00 UTC | |
|
Re: Hash key removal problems
by eserte (Deacon) on May 04, 2004 at 16:18 UTC | |
by Anonymous Monk on May 04, 2004 at 16:46 UTC | |
|
Re: Hash key removal problems
by dragonchild (Archbishop) on May 04, 2004 at 15:57 UTC | |
by Anonymous Monk on May 04, 2004 at 16:07 UTC |