Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Still unconvinced, sorry

by footpad (Abbot)
on Aug 12, 2001 at 23:23 UTC ( [id://104297]=note: print w/replies, xml ) Need Help??


in reply to Re: Still unconvinced, sorry
in thread New sections and move one

While tilly's perfectly capable of defending himself, I thought I'd point out that there are fewer people able to think outside the box as quickly or clearly as he can. He brings up a fair point; CPAN is more than a module resource, it's also a resource for well (and badly) written code.

As I'm sure you've noticed by now, we don't like handing out crutches. Programmers have to solve a lot of different types of problems in very different ways, especially Perl programmers. What might be an effective hack for an administrator would be completely inappropriate for a public CGI script. What works on one OS needs a different approach on another. And so on.

Thus, we prefer to help people learn to build their own solutions, the solutions appropriate for their given specific task and needs. While certain idioms and solutions can be generalized for different situations, these are either a) trivial or b) few and far between. The ones that can be "universally" applicable have already been documented, either in the O'Reilly books, the POD, our archives, and other good resources.

For example, you asked for:

Other examples I've needed are commatize a number, right/left pad string or number, etc., etc..

Guess what. You already have these in a book that you either own or have read in the bookstore; specifically Llama3. There's a very good discussion of commatizing numbers in one of the later chapters, along with a number of discussions of formatting using printf and sprintf. If you've haven't finished the book, yet, hang in there. You'll find starting places for what you're looking for.

Note: (If you need the page numbers, /msg me. My copy's at work and I'll look them up tomorrow. Since the index of the book was written before the prose, I suspect you can find these discussions using the index.)

Don't forget that the archives contain a number of discussions from people solving the same problems. The code is in here; you just have to take the initiative, invest in your own learning curve, and suit your code to the action. Experience is the best teacher and you gain experience through practice.

If you don't, then how will you learn and truly master Perl?

--f

Replies are listed 'Best First'.
Re: Re: Re: Still unconvinced, sorry
by aquacade (Scribe) on Aug 13, 2001 at 19:24 UTC
    Updated:
    Thanks! Yes I'm now reading the 3rd Llama (on page 55 now) and look forward finishing it. I now own a current edition of every O'Reilly book written about Perl. I'm still learning where to look for what in the documentation and books and websites.

    I'm still learning the Perl Monks culture, but not understand it very well as yet. I'm doing pretty good at learn Perl, thanks in part to a few good Monks. I understand I have to pay my dues to learn Perl like others before me. I'm here for the long haul no matter what!

    ..:::::: aquacade ::::::..

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://104297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-24 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found