techra has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm trying to research a possible bug in the standard Perl module SelfLoader. Perhaps it's not considered a bug, but it seems awfully suspect to me. I've tried this with Perl version 5.8.4 and SelfLoader 1.0904 (the most recent).
Given the following:package goober; use SelfLoader; sub goober::denote; 1; __DATA__ sub denote { # denote code }
SelfLoader does fine. But if one were to put a tab before the "sub denote {" line, and a script that uses the package of goober attempts to run the denote subroutine, it is not found.
As the tab is just whitespace, isn't this unusual behavior? Is it possibly a bug in the regular expressions SelfLoader uses to locate the actual subroutine declarations in a module?
When I remove the tab, everything works fine again.
I appreciate any edification on this matter.
d. Taylor Singletary,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Possible bug in SelfLoader?
by dragonchild (Archbishop) on Feb 17, 2005 at 19:00 UTC | |
by tye (Sage) on Feb 17, 2005 at 19:52 UTC |