in reply to Why does Net::Curl::Easy->new work but Net::Curl::Easy::new does NOT?

A method is a sub which expects as first argument the object (ref) or the class name (string)

Arrow does this implicitly for you, otherwise you need to do it explicitly.

See perlobj#A-Method-is-Simply-a-Subroutine

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re: Why does Net::Curl::Easy->new work but Net::Curl::Easy::new does NOT?