in reply to Hashes and Associative Arrays
It would help us if you show us what the content of the file looks like. For test purposes it's really handy to have the test data "built in" (see I know what I mean. Why don't you? for hints on doing that).
A couple of, not quite related, tips will help with finding and fixing problems generally:
It helps a lot while developing code to ignore unimportant stuff like managing input and output files. The "built in data" trick isn't just for us, it helps you too. Perl helps by letting you tack an input file to the end of the script with __DATA__ and you can use print without a file handle to see the output immediately in the console without having to dig into an output file.
Without worrying about how to write the code, how did you imagine a user of the script would give the edit information? From the user's perspective what do you imagine the sequence of events to be?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hashes and Associative Arrays
by phizymonk (Novice) on Jan 27, 2016 at 03:12 UTC | |
by GrandFather (Saint) on Jan 27, 2016 at 03:33 UTC | |
by phizymonk (Novice) on Jan 27, 2016 at 03:38 UTC | |
by GrandFather (Saint) on Jan 27, 2016 at 04:11 UTC |