Skip Menu |

This queue is for tickets about the File-Type CPAN distribution.

Report information
The Basics
Id: 7773
Status: new
Priority: 0/
Queue: File-Type

People
Owner: Nobody in particular
Requestors: cpan [...] ali.as
Cc:
AdminCc:

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



Subject: Useless use of ->new ???
->new appears to do nothing but create an empty object, that never stores anything... Can or should the other methods be used directly? File::Type->checktype_contents($data) for example. If so, it might be worth noting that you can in the docs. If you do need to store something, would if be worth putting in a sub foo { my $self = ref $_[0] ? shift : shift->new; ... } in each of the methods, so that they create as needed.