mjscott2702 has asked for the wisdom of the Perl Monks concerning the following question:
Then, of course, I realised that the compiler was simply skipping over the comments (and newlines) to interpret this as my $var1 = my $var2 = 0; which is perfectly legal syntax, of course.my $var1 = # comment line1 # comment line2 # .... # comment line100 my $var2 = 0;
I don't have access to utilities such as perltidy or the Perl::Critic module on this system - my question is - would they even have helped in this case?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Script/module formatting gotcha
by jettero (Monsignor) on Oct 06, 2010 at 13:39 UTC | |
by morgon (Priest) on Oct 06, 2010 at 14:01 UTC | |
by mjscott2702 (Pilgrim) on Oct 06, 2010 at 13:52 UTC | |
Re: Script/module formatting gotcha
by ww (Archbishop) on Oct 06, 2010 at 13:51 UTC | |
by jethro (Monsignor) on Oct 06, 2010 at 14:59 UTC | |
by mjscott2702 (Pilgrim) on Oct 06, 2010 at 13:58 UTC | |
Re: Script/module formatting gotcha
by oko1 (Deacon) on Oct 06, 2010 at 14:06 UTC | |
by mjscott2702 (Pilgrim) on Oct 06, 2010 at 15:27 UTC |