Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Never lock $0 inside of a BEGIN block

by Abigail-II (Bishop)
on May 21, 2003 at 21:57 UTC ( #259910=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Never lock $0 inside of a BEGIN block
in thread Never lock $0 inside of a BEGIN block

Well, yeah, didn't you see the 10 references to $"?

Abigail


Comment on Re: Never lock $0 inside of a BEGIN block
Re: Re: Never lock $0 inside of a BEGIN block
by BrowserUk (Pope) on May 21, 2003 at 22:24 UTC

    Darn it! My blasted syntax highlighter is always confused by that dratted var:)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller

      Maybe it suggests that you should not use the var ;-)

      The syntax highlighter built into SciTE gets confused from time to time as well ... but generaly I think I improve the code if I change it to suite SciTE. If the code confused the parser it might as well confuse a programmer. Especialy if he uses something that highlights it wrong.

      Jenda
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
         -- Rick Osborne

      Edit by castaway: Closed small tag in signature

        On this occasion, it wasn't my theoretical code that theoretically threw my syntax highlighter into a spin. Theoretically:) And I'm not going to be the one to risk Abigail-II's wroth by suggesting that $" should never be used!

        In reality, the only time $" ever appears in my code, it is always localised, always on a line on its own, and always followed by a comment eg.

        local $" = ', '; #"

        The " in the comment serving to pair the first for the syntax highlighter.


        Examine what is said, not who speaks.
        "Efficiency is intelligent laziness." -David Dunham
        "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2014-12-19 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (88 votes), past polls