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

Re^2: Down-vote Bad, Up-vote Good

by whakka (Hermit)
on Jun 04, 2009 at 15:10 UTC ( #768462=note: print w/replies, xml ) Need Help??

in reply to Re: Down-vote Bad, Up-vote Good
in thread Down-vote Bad, Up-vote Good

I'm staring at your post in disbelief. You're not clear on the question:

How does chomp change the contents of the string without the need to pass it in by reference?

To me that's a perfectly simple and lucid question, with a good code example. To imply that it's unclear is simply disingenuous and somewhat demeaning. Maybe the concept wasn't clear to you, but I don't think that's the fault of the OP.

Replies are listed 'Best First'.
Re^3: Down-vote Bad, Up-vote Good
by CountZero (Bishop) on Jun 04, 2009 at 19:38 UTC
    To me that's a perfectly simple and lucid question, with a good code example.
    Don't take yourself to be the measure of all. It is the basis for misunderstandings and bad things have been caused by it. As Sun Tzu said: "If words of command are not clear and distinct, if orders are not thoroughly understood, then the general is to blame."


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://768462]
[Cosmic37]: I'm wondering whether there is a specific/(or at least "usual") command or does one take a copy before undefining and then copy it back after slurping file into a string?
[BarApp]: I need help accessing perl files. I need permission!!!
[Cosmic37]: I wish thee a peachy life and express gratitude for considering my pathetic questions
[erix]: record separator
[Cosmic37]: Permissions are interesting earthlings. Did nature determine who gives permission and who asks permission. Who was the first to get permission? Are you not related to them as one big earthling family?
[karlgoethebier]: Cojones! We need cojones!
[karlgoethebier]: Ouch! Permissions! We need permissions!

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

    Results (672 votes). Check out past polls.