in reply to Typecasting Hashes

Xiong:

Just a minor note: When you add your code tags, you don't want to have any extra lines in there. Why? Perlmonks has a feature that automatically adds line numbers for reading code chunks. So when you stated that line 20 has the error, the line marked as line 20 is blank. (Of course, your hashbang line shows up as line 2, so it was easy to see that the line marked 21 is the culprit.)

...roboticus

Replies are listed 'Best First'.
Re: OT: Code tags (re: Typecasting Hashes)
by CountZero (Bishop) on Feb 20, 2010 at 16:05 UTC
    Perlmonks has a feature that automatically adds line numbers for reading code chunks.
    A nifty feature, but how to switch it on? Is it something in CSS?

    CountZero

    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

      CountZero:

      IIRC, it's probably this bit in my Display Settings: <b><font color="red">&01;</font></b>&nbsp;

      I don't recall where I found it (I did a Super Search, but didn't turn up the link I got it from.)

      ...roboticus

      Update: Mere seconds after I post, I find the link. It's listed in Help for Display Settings in the Code Prefix section, and yes, it's the bit I mentioned above.