in reply to Re: grepping out global vars?
in thread grepping out global vars?

It's B::Xref and it's pretty cool.

X:\perl>perl -MO=Xref c:\perl\lib\strict.pm File c:\perl\lib\strict.pm Subroutine (definitions) Package Internals &HvREHASH s0 &SvREADONLY s0 &SvREFCNT s0 &hash_seed s0 &hv_clear_placeholders s0 &rehash_seed s0 Package PerlIO &get_layers s0 Package Regexp &DESTROY s0 Package UNIVERSAL &VERSION s0 &can s0 &isa s0 Package Win32 &BuildNumber s0 &CopyFile s0 &DomainName s0 &FormatMessage s0 &FsType s0 &GetCwd s0 &GetFullPathName s0 &GetLastError s0 &GetLongPathName s0 &GetNextAvailDrive s0 &GetOSVersion s0 &GetShortPathName s0 &GetTickCount s0 &IsWin95 s0 &IsWinNT s0 &LoginName s0 &NodeName s0 &SetChildShowWindow s0 &SetCwd s0 &SetLastError s0 &Sleep s0 &Spawn s0 Subroutine (main) Package (lexical) $default_bits i25 %bitmask i5 Package strict $VERSION 3 &bits &25 c:\perl\lib\strict.pm syntax OK

Replies are listed 'Best First'.
Re^3: grepping out global vars?
by BrowserUk (Patriarch) on Jan 18, 2005 at 03:29 UTC
    It's B::Xref and it's pretty cool.

    There is also a Devel::Xref which I eventually pursuaded CPAN to allow me to download.

    However, the documentation is less than clear (to me) on how to use it. I can get some output, but you have to embed it in the script, and the output is somewhat confusing.

    Now you've pointed out B::Xref, and demonstrated how easy it is to use, I am way impressed. It is really cool. And fast!

    I just tried it out on Date::Manip. Very interesting, if slightly scary reading.

    Thanks for posting, I can see me using that a lot.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.