Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
replacing Readonly with Const::Fast #4
This is another very simple patch to WWW::Facebook::API, replacing the deprecated Readonly module with the newer Const::Fast.
According to Const::Fast's documentation, there are some serious issues of Readonly that aren't easily fixable without breaking backwards compatibility in subtle ways. In particular Readonly's use of ties is a source of subtle bugs and bad performance. Instead, Const::Fast uses the builtin readonly feature of perl, making access to the variables just as fast as any normal variable without the weird side-effects of ties. Readonly can do the same for scalars when Readonly::XS is installed, but chooses not to do so in the most common case.
Hope it helps! Cheers!