Closed demianriccardi closed 9 years ago
Oh, this is a particular issue with using a backtick on perldoc
. perldoc
tries to detect if it is on a terminal or not.
Try:
print `perldoc Try::Tiny 2>/dev/null`;
You can make a helper function for that too!
IPerl->helper( get_perldoc => sub {
shift;
print `perldoc @_ 2>/dev/null`;
return; # so that the final return value is not printed
});
# ...
IPerl->get_perldoc('Try::Tiny');
Or, if you want to get fancy:
IPerl->helper( get_perldoc => sub {
shift;
my $html = `perldoc -ohtml @_ 2>/dev/null`;
return IPerl->html( $html );
});
# ...
IPerl->get_perldoc('Try::Tiny');
WOW!
using the command line from a cell with back ticks worked for me before (e.g.
perldoc Foo::Bar
), but not with the most recent changes.