in reply to Re^3: Slow evolution of Perl = Perl is a closed Word (use)
in thread Slow evolution of Perl = Perl is a closed Word
Do you know whether there are any examples of this that aren't Source-Filter related issues ?Of course there are.
Whether or not this line is parsed/run first will change how the next line is interpreted:use constant FOO => 1234;
print FOO;
This will either be treated as printing a constant, or printing $_ to a filehandle FOO.
And functions with prototypes:
will be parsed differently if foo is declared first asfoo +3
or withsub foo ();
sub foo;
It means foo()+3 in the former and foo(3) in the latter case.
(It'll do the same if the sub with body is placed in the source code before the call, without the separate declarations, or in a module you use.)
And no source filter in sight.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Slow evolution of Perl = Perl is a closed Word (use)
by erroneousBollock (Curate) on Sep 02, 2007 at 06:06 UTC | |
by ysth (Canon) on Sep 02, 2007 at 20:44 UTC | |
by bart (Canon) on Sep 04, 2007 at 11:18 UTC |