Re: [perl #32562] __PACKAGE__ symbol has wrong value after evalor require

2005-01-03 Thread Nick Ing-Simmons
Rafael Garcia-Suarez [EMAIL PROTECTED] writes: Mark-Jason Dominus (via RT) wrote: perl -le 'package D; eval q{print __PACKAGE__}' This prints main, but it should print D. This very simple patch appears to fix it : It may _change_ it, but is it a fix? __PACKAGE__ reflects the

Re: [perl #32562] __PACKAGE__ symbol has wrong value after evalor require

2005-01-03 Thread Rafael Garcia-Suarez
Nick Ing-Simmons wrote: Rafael Garcia-Suarez [EMAIL PROTECTED] writes: Mark-Jason Dominus (via RT) wrote: perl -le 'package D; eval q{print __PACKAGE__}' This prints main, but it should print D. This very simple patch appears to fix it : It may _change_ it, but is it a