in reply to Passing a class method

BTW, my ($self, $y) = shift; isn't a typo, it is wrong IMHO. It should be my ($self, $y) = @_; - if this is what you meant.

See also shift and perlsub.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help