Problems? Is your data what you think it is? | |
PerlMonks |
Re: problems editing a flat-fileby Albannach (Monsignor) |
on Jul 17, 2001 at 23:38 UTC ( [id://97424]=note: print w/replies, xml ) | Need Help?? |
You might find a few hints if you use strict; and used
-w or use warnings; (depending on your version of Perl).
In your foreach $guest loop your split is not acting on $guest as you have mis-placed your brackets. Because of this, you never find the matching record that you want to change, and so your file is never any different after execution. Warnings would have caught this problem. --
In Section
Seekers of Perl Wisdom
|
|