Perl 4 amazed me when I discovered that one could
while (<>) { if /^\s*(\d+)\s+([a-z].+)\s*$/i) { do_something($1, $2); }
What? I didn't have to use lex and yacc if I wanted to parse a file? And it also handled binary data efficiently (in terms of my time, not the machine's) with pack and unpack. And then there was DBI, and XML, and Net.
Perl has been saving me time these many years, and saving time for many people that I work with. I got home Friday night at a reasonable hour largely because of a Perl script written Thursday and modified in a hurry Friday when the input was not as expected. I am grateful to Larry Wall and all the CPAN contributors who have made the lives of many thousands of programmers so much more productive.
No comments:
Post a Comment