Perl: the Markov chain saw | |
PerlMonks |
Re^7: insert label into fileby kennethk (Abbot) |
on Mar 20, 2009 at 19:12 UTC ( [id://752138]=note: print w/replies, xml ) | Need Help?? |
The magic numbers in my code come in because each line consists of 1 date followed 16 key-value pairs. This adds up to 33 pieces of data per record. If the string has more than these 33 pieces of information, then there must be at least one more record. Update: You can avoid magic numbers by doing something along the lines of:
In Section
Seekers of Perl Wisdom
|
|