On Thu, 4 Oct 2001, Philippe M . Chiasson wrote: > Okay, it sure makes sense to _really_ check in @INC, it's just quite complicated > compared to checking the stash. One question about that stuff. Why isn't there > a generic function somwehre in perl to convert Perl package name to a filename ? Or >haven't > I looked enough... Because I have the impression that simply s/::/\//g and slapping > a '.pm' at the end most definitely doesn't work on all platforms ...
dunno why perl doesn't have a generic function (normally happens in Perl_ck_require). but s,::,/,g and .= '.pm' will work on all platforms, Perl always stores the %INC filename in that format. > I just wonder what should be the clean way to dynamically allocate memory when > you need it, if you need it, without a handle on things like the current > request/pool... require an APR::Pool to be passed into the function. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
