On Mon, Aug 07, 2000 at 01:57:14PM +0200, Jean-Louis Leroy wrote:
> package Foo;
> 
> sub new
> {
>         bless { "${CURRENT_PACKAGE}name" => 'Simpson' ...
> }
> 
> ...where $CURRENT_PACKAGE is a special variable automatically set
> to...guess what? ;-)

Is $CURRENT_PACKAGE any different, value-wise, than __PACKAGE__?  Is there a
reason to prefer it?  I understand it can be interpolated, making it easier
to use within a string, but weigh that against adding yet another special
variable, for a value that's already available otherwise.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to