in reply to Re^2: Non-traditional, Line by Line Compilation in Perl
in thread Non-traditional, Line by Line Compilation in Perl
Agreed, compilation would be based on statements, separated by semicolon!
We don't need no stinkin semicolons !:)
$ perl -c -e " use strict; use warnings; { $foo = 1 } { $bar }} " Global symbol "$foo" requires explicit package name at -e line 1. Global symbol "$bar" requires explicit package name at -e line 1. Unmatched right curly bracket at -e line 1, at end of line syntax error at -e line 1, near "}}" -e had compilation errors.
$ perl -e " use strict; use warnings; { our $foo = 1 } { our $bar } p +rint 666" 666
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Non-traditional, Line by Line Compilation in Perl
by sumeetgrover (Monk) on Dec 07, 2011 at 12:24 UTC | |
Re^4: Non-traditional, Line by Line Compilation in Perl
by ambrus (Abbot) on Dec 10, 2011 at 21:06 UTC |
In Section
Meditations