Tue Nov 02 20:42:28 2010user42 [...] zip.com.au - Ticket created
Subject:
AUTOLOAD vs non-existent sync()
Date:
Wed, 03 Nov 2010 11:42:03 +1100
To:
bug-X11-Protocol [...] rt.cpan.org
From:
Kevin Ryde <user42 [...] zip.com.au>
I mistakenly called ->sync() thinking it a server synchronise, like
use strict;
use warnings;
use X11::Protocol;
my $X = X11::Protocol->new;
$X->sync;
but there's in fact no such method. It'd be good if that was some sort
of error.
Perhaps the AUTOLOAD() could get/set only fields which exist, so a typo
or other mistaken method name is noticed.