in reply to Typeglobs and Symbol tables

My second question: I've not used typeglobs a lot. Are there any issues with this that I should be aware of?
I have read that Perl 6 will do away with typeglobs. I don't know if there is a way to write your code so that it will work in Perl 5 and Perl 6.

Replies are listed 'Best First'.
Re: Re: Typeglobs and Symbol tables
by davorg (Chancellor) on Jun 01, 2001 at 12:21 UTC

    Is anyone worrying yet about writing code that works in Perl 5 and Perl 6? Seems a little silly, given that the language design for Perl 6 is still in a state of flux.

    Yes, it does look as tho' typeglobs will cease to exist in Perl 6, but there will be some other way to achieve the same results - probably far more cleanly. Also, there will be ways to automatically convert Perl 5 scripts to Perl 6 syntax - tho' I wouldn't be surprised if typeglob fell into the 10% that this didn't work for :(

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me