Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Do this or its equivalent.

    perldoc -t perllocal \
      | perl -lne 'print $1 if /"Module" (\S+)/'
      | xargs -n 1 cpan
    • Good idea, except for one detail: the module list is not the list from this installation of perl, but of the previous one, that has already been deleted. So it needs to be a multi-step process:
      1. save the module list to a file
      2. reinstall perl
      3. run the rest of your oneliner using that file as its input