Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: whichpm

by belg4mit (Prior)
on Jul 16, 2003 at 13:43 UTC ( #274814=note: print w/replies, xml ) Need Help??


in reply to Re: whichpm
in thread whichpm

I had actually thought about these vars, but assumed that require would handle the magic. I'll test it, if it doesn't it's a simple matter of a BEGIN block to split the vars and <s>push</s> unshift them onto @INC.

UPDATE: As Aristotle got around to showing before I did, the vars are heeded

Oh umm, okay... Why not? I actually used require intentionally. Let perl do the heavy lifting ;-) It even works for broken modules which don't return true (but not null length files).

--
I'm not belgian but I play one on TV.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274814]
help
Chatterbox?
[sierpinski]: I've never seen $#$var before.
[LanX]: $list cops be an array ref
[LanX]: could
[LanX]: $#array gives the length
[LanX]: no sorry ...
[sierpinski]: so that would just be deferencing it...
[LanX]: the last index!
[LanX]: yes
[sierpinski]: yeah I guess $list is a reference.. yeah
[sierpinski]: why is it the last index and not the first? because the length of the array becomes the index?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2017-12-13 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?