in reply to How is a perl program processed ?
If you're interested, you can have a look at the bytecode of a script using the B::Bytecode module. For example:
The file bytecode contains the bytecode.$ perl -MO=Bytecode -e '$camel="flea-ridden";print $camel;' >bytecode
In Perl6, this will be taken to the next step, and there will be a bytecode interpreter that's seperate from the Perl interpreter. This is parrot.
Update: As diotalevi rightly (if rather succinctly ;) ) points out, there is no bytecode. In fact, what I mistakingly and confusingly call bytecode, is in fact a serialisation of the internal optree the Perl interpreter generates. So, substitute 'optree' for 'bytecode' in the above, and you get an equally confusing, yet more correct explanation.
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How is a perl program processed ?
by diotalevi (Canon) on Apr 01, 2003 at 10:27 UTC | |
by tye (Sage) on Apr 01, 2003 at 22:12 UTC | |
by TheYoungMonk (Sexton) on Apr 07, 2003 at 11:49 UTC | |
by TheYoungMonk (Sexton) on Apr 01, 2003 at 11:31 UTC |