in reply to User management system: update problem

Reduce your problem as much as you can, e.g.
$ echo -e "old\nfarts\nsmell" > foo $ cat foo old farts smell $ perl use strict; use warnings; my $fh = undef; open ($fh, "<", 'foo') or die "Can't open: $!"; while (<$fh>) { chomp; $fh =~ s/old/new/g; } close ($fh) or die "Can't close: $!"; __END__ $ cat foo old farts smell
The file was not updated, which means your use of the replace operator on the filehandle probably doesn't work as you expect.

Also, consider using the readmore tags since your code is extensive. See Perl Monks Approved HTML tags.

--
When you earnestly believe you can compensate for a lack of skill by doubling your efforts, there's no end to what you can't do. [1]