Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: In praise of curiosity

by chunlou (Curate)
on Jul 27, 2003 at 17:47 UTC ( #278248=note: print w/replies, xml ) Need Help??

in reply to In praise of curiosity

There was this data entry person (not a programmer at all) whose task was manually sending some partially prewritten emails to customers daily. Then, he was told how to use MS Word mail merge feature to make his work easier.

In order to use mail merge, one need to know how to use "table," how to "query" or "sort" data, etc--the basic SQL stuff actually. Out of curiosity and necessity, he learnt more and more about data manipulation. Yada, yada, a few months later, he became a DBA.

On the opposite of the spectrum, some office workers often need to use spreadsheet to do stuff, which sometimes involved some very minor macro-like programming. Often some of them asked some techie people in the office for help, who might try to teach them how to do it themselves. Nonetheless, some of those workers's response might basically be, "please do it for me," and then walking away. No curiosity, no learning, no improved productivity.

It is a good thing (or sometimes mixed blessing) that these days software spares people from having to memorize too much stuff with the help of text sensitive help, syntax high light, object explorer, etc. Vastly different from the punch card era the way people programmed in, say, Fortran. By and large, it's a good thing. It vastly increases the size of the programming community. So many "amateur" programmers these days, who contribute to the CS field and industry in a way impossible if done by academia alone. After all, Perl has been being developed by many "amateur," along with a score of other folks.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://278248]
[Cosmic37]: greetings earthlings please can someone improve my pathetic perl knowledge
[Cosmic37]: I have 2 files each with datetime and other data in unknown order and I want to find rows from both files matching by datetime and output them combined/ concatenated
[Corion]: Sure
[Corion]: Do you have any specific interests or general Perl knowledge?
[Cosmic37]: should I slurp? should I grep? Noble Lords I wish you good karma and beg your advice
[Corion]: Cosmic37: Ah, see perlfaq4, about How do I compute the intersection of two arrays
[Cosmic37]: I am out of practice; I use Perl for scientific programming for number crunching
[Corion]: Cosmic37: Basically, you read one file into a hash, keyed by your key, and then match the lines from the second file to that hash
[Cosmic37]: note that the two files only have datetimes which may match whereas other data per line is different format in file1 and file2 - is that really intersection?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-06-29 16:18 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (672 votes). Check out past polls.