in reply to Changing the Value Assigned To A Hash Key

Can you post more of the code?
Try running it under perl -w,
It should point out a few possible mistakes
(like comparing a string using ==)

Also, your code is not changing $app{"first_name"} to undef.
It is changing it to "", which is merely an empty string.
  • Comment on Re: Changing the Value Assigned To A Hash Key

Replies are listed 'Best First'.
Re^2: Changing the Value Assigned To A Hash Key
by gnurob (Initiate) on Feb 08, 2005 at 20:53 UTC

    Hi, thanks for responding. Wow, you guys are f-a-s-t.

    I think -w is ignored by Windows since it doesn't understand the she-bang. The top of the script does "use warnings".

    Oh, and the "" are back to undef. That was leftovers from desperate testing. :-)

      It's neither ignored on the command line (perl -w script.pl) nor on the shebang line (#!/usr/bin/perl -w). While Windows doesn't know anything about the shebang line, Perl checks for a shebang line, and treats everything after perl as options.