Reply to post: Re: Why exactly is Perl any worse than Python? : About efficiency.

Clutching at its Perl 6, developer community ponders language name with less baggage

ST Silver badge
Angel

Re: Why exactly is Perl any worse than Python? : About efficiency.

> [ ... ] could I have done it in C? Eventually?

%> man strtok

Unless you're writing a compiler from scratch, you don't need flex/bison to parse log files.

Beware the misleading friendliness of Perl regexp. Might not always do what you thought it would.

In one of my previous jobs I was a "mentor" for one of our summer interns. I made him learn flex and bison (O'Reilly book) because we had to parse some relatively unstructured text files. He didn't know flex/bison.

He learned flex/bison in 3 days and in another 5 he had the parser written, done, debugged, tested and checked with the static analyzer.

And this was a Junior year undergrad intern.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2019