On Fri, 24 Mar 2017 00:17:33 -0700 Sami Joseph <sami.jos...@gmail.com> wrote:
> He would comment out the > control codes (thus rendering the text interpretable) on the parts > meant to run, which would differ between machines. There are better ways to do this, at least in Perl. You can use the $^O to determine the operating system. See http://perldoc.perl.org/perlvar.html#%24OSNAME You can use the environment variable to do conditional compiling. # -------------------------------------- # Diagnostics # conditional compile DEBUGging statements # See #http://lookatperl.blogspot.ca/2013/07/a-look-at-conditional-compiling-of.html use constant DEBUG => $ENV{DEBUG}; To use it: print "something\n" if DEBUG; -- Don't stop where the ink does. Shawn H Corey -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/