Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: What is the easy way to comment out chunk of Perl Code

by Anonymous Monk
on Nov 18, 2005 at 23:14 UTC ( [id://509991]=note: print w/replies, xml ) Need Help??


in reply to What is the easy way to comment out chunk of Perl Code

if(0) { ...chunk of Perl code you don't want to run... }

Replies are listed 'Best First'.
Re^2: What is the easy way to comment out chunk of Perl Code
by Perl Mouse (Chaplain) on Nov 20, 2005 at 17:07 UTC
    The problem with that is that perl is still going to try to compile what's inside the block, so it wouldn't work if you want to outcomment something that doesn't compile, or to outcomment an BEGIN/CHECK/INIT/END block - and it may not work as expected if you outcomment a method that also appears higher up in your inheritance tree.
    Perl --((8:>*

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (9)
As of 2024-04-19 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found