in reply to import() magic
So from what I gather the import and unimport methods are automatically handled by perl and internally autoloaded as scalar variables. As to why this is and what purpose it serves I am in totally in the dark.gv = gv_fetchmeth(stash, name, nend - name, 0); if (!gv) { if (strEQ(name,"import") || strEQ(name,"unimport")) gv = (GV*)&PL_sv_yes; else if (autoload) gv = gv_autoload4(stash, name, nend - name, TRUE); }
_________
broquaint
[1] I sit corrected as Ovid points out in his node that this behaviour is documented albeit surreptitiously
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Hey...two bugs in Perl from one node?
by Ovid (Cardinal) on May 29, 2002 at 20:21 UTC | |
by Anonymous Monk on May 29, 2002 at 21:57 UTC |