Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I just had a funny but mentally draining experience I wanted to share. I received a call from one of my company's clients, who was having a problem with a Perl program that someone at my company (not me) had originally written. I had the original program available, but the client had modified it heavily, and for security purposes our employees are not allowed to see the changes they've made. Also, the guy who is maintaining their program is not very familiar with Perl. (What a messed up situation, I know.)

So I was tasked with helping our client, who is not familiar with Perl, debug his Perl program, which I had not written and could not see, over the phone. The conversation went a lot like this:

Him: "Well, there's a while loop that says while left parenthesis left diamond capital I capital N right diamond bracket right parenthesis left curly brace and some if elsifs and inside the elsif I have C-H-O-M-P semicolon followed by on the next line, dollar type equals tilde lower-case S forward slash backslash N forward slash space character forward slash lower-case G semicolon, does that sound right?"

Me: "Whoa."

redo; }
It was a little more complicated than transliterating characters, though, since I had to deduce the structure of the code, and had to ask questions I thought would lead in promising directions to find the source of the error he needed to fix. Eventually I discovered a bad assumption that was being broken somewhere other than where he thought the problem was. The fix I had him make was also not pretty, but the best I could do over the phone.

Mostly I just wanted to get that experience off my chest, but I'm also curious: have any of you Monks had similar experiences? How did you handle them?

In reply to Debugging Perl over the phone by thelenm

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    [sierpinski]: I've never seen $#$var before.
    [LanX]: $list cops be an array ref
    [LanX]: could
    [LanX]: $#array gives the length
    [LanX]: no sorry ...
    [sierpinski]: so that would just be deferencing it...
    [LanX]: the last index!
    [LanX]: yes
    [sierpinski]: yeah I guess $list is a reference.. yeah
    [sierpinski]: why is it the last index and not the first? because the length of the array becomes the index?

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (12)
    As of 2017-12-13 15:58 GMT
    Find Nodes?
      Voting Booth?
      What programming language do you hate the most?

      Results (369 votes). Check out past polls.