Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defined(@array) is deprecated #2

Open
c9s opened this issue Apr 23, 2012 · 2 comments
Open

defined(@array) is deprecated #2

c9s opened this issue Apr 23, 2012 · 2 comments

Comments

@c9s
Copy link

c9s commented Apr 23, 2012

Code:

use Git::PurePerl;
my $git = Git::PurePerl->new(
    directory => '.git'
);
$git->master->committer;
$git->master->comment;
$obj = $git->get_object($git->master->tree);
use Data::Dumper; warn Dumper( $obj );
defined(@array) is deprecated at /Users/c9s/perl5/perlbrew/perls/perl-5.15.7/lib/site_perl/5.15.7/PerlIO/via/dynamic.pm line 149.
    (Maybe you should just omit the defined()?)
.git/.git is not a directory at /Users/c9s/perl5/perlbrew/perls/perl-5.15.7/lib/site_perl/5.15.7/Git/PurePerl.pm line 105
    Git::PurePerl::BUILD('Git::PurePerl=HASH(0x7fdbc4959818)', 'HASH(0x7fdbc302a6a8)') called at constructor Git::PurePerl::new (defined at /Users/c9s/perl5/perlbrew/perls/perl-5.15.7/lib/site_perl/5.15.7/Git/PurePerl.pm line 92) line 63
    Git::PurePerl::new('Git::PurePerl', 'directory', '.git') called at git.pl line 4
@sergeyromanov
Copy link

This looks like a problem in PerlIO::via::dynamic module, and it is indeed filed there:
https://rt.cpan.org/Public/Bug/Display.html?id=77495
/cc @alexmv

Also, the most relevant fork for Git::PurePerl is https://github.com/broquaint/git-pureperl.
Cogit (a Moose-less fork of Git::PurePerl) is worth looking at as well.

@alexmv
Copy link

alexmv commented Oct 26, 2016

PerlIO::via::dynamic version 0.14 addressed this:

bestpractical/perlio-via-dynamic@c673c94

I've resolved the rt.cpan.org ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants