Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

perl: "Not a GLOB reference"

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
appelgebak
Apprentice
Apprentice
Posts: 225
Joined: Sun Sep 12, 2004 3:47 pm
Location: Ruhrpott

perl: "Not a GLOB reference"

  • Quote

Post by appelgebak » Wed Feb 02, 2011 7:35 pm

Hi,

is used mp32ogg before, but after a world update now it shows:

"Not a GLOB reference at /usr/lib64/perl5/vendor_perl/5.12.2/MP3/Info.pm line 526."
The line references to "binmode $h".

Curious: I have 5.12.3 installed, but error remains.

Any hints??

Appel
Top
wthrowe
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Wed Aug 19, 2009 6:28 pm

  • Quote

Post by wthrowe » Wed Feb 02, 2011 11:16 pm

Does perl-cleaner --all want to rebuild anything?
Top
ocbMaurice
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 91
Joined: Fri Feb 14, 2003 2:32 pm
Location: Switzerland

  • Quote

Post by ocbMaurice » Fri Feb 04, 2011 1:10 pm

Hi,

I can only tell you that $h should be a filehandle, which it isn't in your case (that's the reason for this error). So I would check where $h is assigned in the code. Maybe you find out why $h is not a valid handle in your case. IMO the code should check if $h is assigned a valid handle or die with an error message ...

hth, Maurice
Top
appelgebak
Apprentice
Apprentice
Posts: 225
Joined: Sun Sep 12, 2004 3:47 pm
Location: Ruhrpott

  • Quote

Post by appelgebak » Fri Feb 04, 2011 5:46 pm

After perl-cleaner i get the similar message:

Code: Select all

Not a GLOB reference at /usr/lib64/perl5/vendor_perl/5.12.3/MP3/Info.pm line 526.
So: 5.12.3. is used, and i again emerged mp32ogg.

Little bit frustrating...
Top
BitJam
Advocate
Advocate
Posts: 2513
Joined: Tue Aug 12, 2003 4:15 pm
Location: Silver City, NM

  • Quote

Post by BitJam » Sat Feb 05, 2011 3:10 am

The problem is that MP3::Info is assuming $file is either a scalar filename or a Glob reference. The problem is that Getopt::Long is returning a blessed scalar filename and this confuses MP3::Info.

In /usr/lib64/perl5/vendor_perl/5.12.X/MP3/Info.pm, near line 514 change:

Code: Select all

    if (ref $file)
to:

Code: Select all

    my $ref = ref $file;
    if ($ref and $ref =~ /Glob/i)
Make the identical change near line 1577. This seemed to get mp32ogg working for me but I see there are other places in the same file that might need the same change.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic