Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: My Perl code can be understood by...

by rogueFalcon (Beadle)
on Feb 26, 2008 at 04:05 UTC ( #670222=note: print w/replies, xml ) Need Help??


in reply to Re: My Perl code can be understood by...
in thread My Perl code can be understood by...

I think it is ok to use complex perl if you leave a simple comment over it that explains it. Or you could do something I saw in production code for a Fortune 500 company.
# DO NOT EDIT THE NEXT LINE... IT WORKS AND THAT IS ALL YOU NEED TO KNOW

-- rogueFalcon
Why do you people insist on doing things sdrawkcab?

  • Comment on Re^2: My Perl code can be understood by...

Replies are listed 'Best First'.
Re^3: My Perl code can be understood by...
by soapbox (Initiate) on Mar 06, 2008 at 03:54 UTC

    Exactly. If I have a really efficient/ugly/erudite line or two of code, I comment above it that

    ## This is where the magic happens ##

    So that (a) I can find it later, and (b) J. Random Neophyte (see gloryhack's post, below) might not screw with that line after turning off the strict pragma.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://670222]
help
Chatterbox?
[ambrus]: "you are far more likely to be squished between two other dudes" => wait, really? aren't most planes, weighted by people traveling on it, so narrow that there are only two or three seats on each side of the one corridor, so only one third of the people ge
[ambrus]: t squished between two other people?
holli is about to take the first hit since a month and this weed is strong shit. Should my head explode, someone call 911.
[ambrus]: And even when I traveled on a big plane for a long flight, it had 3 seats, then corridor, then 4 seats, then corridor, then 3 seats, so less than half of the people sit between two other dudes.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-12-18 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (486 votes). Check out past polls.

    Notices?