Which one is better (equal?)? why?

%some_hash = (
blah => sub { bleh() },
foo  => sub { $bar - $baz / 100 },
.
.
.
);

$some_hash{foo}->();

[or]

%some_hash = (
blah => 'bleh()',
foo  => '$bar - $baz / 100',
.
.
.
);

eval { $some_hash{foo} };

Well... I'm curious about sub()...
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to