Closed. This question is off-topic. It is not currently accepting answers. 开发者_开发百科 Want to improve this question? Update the question so it's on-topic for Stack Overflow.
I have the following code: ... sub setImage { my $self=shift; my $filename=shift; unless(-r $filename) { warn \"File $filename not found\";
How do I check if an object is an instance of a Named tupl开发者_如何学Ce?Calling the function collections.namedtuple gives you a new type that\'s a subclass of tuple (and no other classes) with a mem