in reply to ps in perl?

I'm not sure if it is core or not, but Proc::ProcessTable is probably what you want.

The example in the module documentation even gives a "cheap and sleazy" version of ps.

Cheers,
Darren :)

Replies are listed 'Best First'.
Re^2: ps in perl?
by doom (Deacon) on Dec 26, 2007 at 19:31 UTC

    Proc::ProcessTable is not core. If it were, this would tell you the first version of perl it was available with:

    perl -MModule::CoreList -e 'print Module::CoreList->first_release('Pro +c::ProcessTable'),"\n";'

    It's a unix-oriented module, which I would guess wouldn't tend to be included in core if only for that reason.

    (The OP, pileofrogs, hasn't made it clear if he's happy with a unix-only solution.)

      The immediate problem is not "is it core". The problem is, "do I have it", or, if not, "how hard is it to install". And the latter applies both to technical issues (how hard work is it to install, and does it even work on my platform), and political ones (will my sysadmin let me install it?)
      'corelist Proc::ProcessTable'