in reply to comment sections
In terms of efficency - using a constant should kill a large block like that at compile time as opposed to run time (although the optimiser might take away the code in the solution above?).#!/usr/bin/perl -w use strict; # Every job should # Start of comments if (defined undef) { foo... } # End of comments &do_more_stuff();
#!/usr/bin/perl -w use strict; use constant COMMENT_WRAPPER => 0; # Start comments if (COMMENT_WRAPPER) { Blah Blah } # End comments &carry_on_with_stuff();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: comment sections
by Abigail-II (Bishop) on Apr 15, 2003 at 11:55 UTC | |
by rir (Vicar) on Apr 16, 2003 at 02:40 UTC |