Hi All, I recently tried some symbol table manipulations and encountered the following:
This code works:
$main::{foo} = sub { warn 'M::Foo' };
foo();
But this one doesn't:
BEGIN {
$main::{foo} = sub { warn 'M::Foo' };
}
foo();
Why ?
--
כותב הרצאות ? מדבר מול קהל ? הבלוג שלי לומד
לדבר<http://publicspeakr.blogspot.com/>כתוב במיוחד בשבילך.
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
