|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Compare two file text input, compare it, replace and write new fileby repellent (Priest) |
| on Feb 14, 2012 at 06:29 UTC ( #953628=note: print w/ replies, xml ) | Need Help?? |
|
You are splitting your source.txt lines with a single whitespace:
For your code to work, source lines have to look like keys separated by single whitespaces. Hmm.. it seems like split may not be the right tool, since it's hard to specify what to really split on. Try regex search and replace!
Have a look at perlrequick and perlretut. (And follow kcott's advice.)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||