Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
To an experienced perl programmer with deep knowledge of the language, this might look readable but for an occasional unprofessional perl user like myself, it would probably take at least half an hour to figure out what it is doing. If I came back to this sort of code in a couple of years to alter/reuse it, I'd be back to square one. If I had a future application that required a different input, this sort of all-in-one read/write approach would be difficult for me to repurpose. It seems that brevity and obfuscation in perl code are inseparable. For me, readability and brevity would be discovering a module Unix::ConfigFile::DHCPCD, that included a method "UpdateInterfaceIP". I think that a valid metric for a modern language is the code I don't have to write. Please note I am not criticizing the skill or helpfulness those that give up their own time to write replies to people like me. I don't want to sound ungrateful. This is my goto place to find expert advice on perl, but claiming code is "readable" on a website that has a section devoted to "Obfuscation" is not a good look. Dazz In reply to Re^3: Yet another config file editing programme : Tell me how to make it better !
by dazz
|
|