Skip Menu |

This queue is for tickets about the Config-General CPAN distribution.

Report information
The Basics
Id: 49023
Status: resolved
Priority: 0/
Queue: Config-General

People
Owner: Nobody in particular
Requestors: mst [...] shadowcat.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: 2.43 FileHandle "fixes" break use of Path::Class::File objects
Date: Wed, 26 Aug 2009 14:04:56 +0100
To: bugs-Config-General [...] rt.cpan.org
From: Matt S Trout <mst [...] shadowcat.co.uk>
You now try to treat any object passed in as a raw glob reference, resulting in Not a GLOB reference at /usr/local/lib/perl5/site_perl/5.10.1/Config/General.pm line 54 # elsif (ref($self->{ConfigFile}) eq 'GLOB' || ref($self->{ConfigFile}) eq 'FileHandle') { elsif (ref($self->{ConfigFile})) { is -not- correct. Given FileHandle is loaded you may be able to do something with an ->isa check, but you -can't- just assume any reference is a filehandle, we've been passing in stringifiable objects for years now and being very happy that Config::General gets it right and just stringifies 'em to a path :) -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst (@) shadowcat.co.uk http://shadowcat.co.uk/blog/matt-s-trout/
revoked breaking patch in 2.44, Path::Class::File works again.