Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

RE: RE: Detecting modules in use?

by dchetlin (Friar)
on Oct 31, 2000 at 02:45 UTC ( #39214=note: print w/ replies, xml ) Need Help??

in reply to RE: Detecting modules in use?
in thread Detecting modules in use?

Also, require does that automatically. The manpage has this snippet:

Has semantics similar to the following subroutine: sub require { my($filename) = @_; return 1 if $INC{$filename}; my($realfilename,$result); ITER: { foreach $prefix (@INC) { $realfilename = "$prefix/$filename"; if (-f $realfilename) { $INC{$filename} = $realfilename; $result = do $realfilename; last ITER; } } die "Can't find $filename in \@INC"; } delete $INC{$filename} if $@ || !$result; die $@ if $@; die "$filename did not return true value" unless $result; return $result; }


Comment on RE: RE: Detecting modules in use?
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://39214]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2015-12-01 01:30 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (791 votes), past polls