You are not logged in.
The recent perl upgrade to 5.16.0-2 seems to have roached a perl script I have been using for years. Would been very pleased if some of you perl gurus out there can suggest a fix.
Code is here: https://github.com/graysky2/mplayer-res … er-resumer
Error I get file trying to use it:
$ mplayer-resumer test.mkv
Can't locate Shell.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/bin/mplayer-resumer line 3.
BEGIN failed--compilation aborted at /usr/bin/mplayer-resumer line 3.Last edited by graysky (2012-06-03 22:40:31)
Offline
Tried installing Shell package using cpan?
Last edited by juiko (2012-06-03 22:04:02)
Offline
@juiko - I haven't yet. I'm scratching my head over why in 5.14.2 Shell.pm is included but in 5.16.0 it is not. Is Shell.pm the same as what the older version had naively?
Offline
That did the trick... now I am the proud owner of a perl module in the AUR... https://aur.archlinux.org/packages.php?ID=59748
Odd thing is that perl 5.14.2 included this:
$ pacman -Qo /usr/share/perl5/core_perl/Shell.pm
/usr/share/perl5/core_perl/Shell.pm is owned by perl 5.14.2-7When I diff'ed this file vs. the one my PKGBUILD installs, there are trivial differences. Perhaps my package needs to be included in [community]? How many other perl scripts dep on this guy and why was it removed from 5.16.0? Anyway, perhaps I'll open a flyspray so the right people can see it. Thanks for your suggestion.
EDIT: https://bugs.archlinux.org/task/30131
Last edited by graysky (2012-06-03 22:51:29)
Offline
in 5.14.2 Shell.pm is included but in 5.16.0 it is not.
Is for me, in my custom distro - perl 5.16.0 installs:
/usr/lib/perl5/5.16.0/CPAN/Shell.pm
/usr/lib/perl5/5.16.0/CPANPLUS/Shell.pm
Maybe Arch's perl package is failing to include it?
Edit: It's in the source file - perl-5.16.0.tar.gz contains:
cpan/CPAN/lib/CPAN/Shell.pm
cpan/CPANPLUS/lib/CPANPLUS/Shell.pm
Last edited by brebs (2012-06-03 22:57:19)
Offline
@brebs - Odd. Perhaps it _is_ a bug in the ARCH package then... in any case, I opened a bug report so the right people will see it.
Last edited by graysky (2012-06-03 22:58:53)
Offline
I agree that Shell.pm != CPAN/Shell.pm
But if I diff the one my AUR package provides against the one that perl 5.14.2-2 provides, they are nearly identical:
$ diff aur/Shell.pm old/core_perl/Shell.pm
11a12,13
> use if $] >= 5.011, 'deprecate';
>Last edited by graysky (2012-06-04 09:46:23)
Offline
Shell was removed as a core module. See perldelta: https://metacpan.org/module/perldelta#R … d-Pragmata
For possible reasons why, look at the beginning of the online docs for the Shell module:
This package is included as a show case, illustrating a few Perl features. It shouldn't be used for production programs. Although it does provide a simple interface for obtaining the standard output of arbitrary commands, there may be better ways of achieving what you need.
Offline