in reply to Re: Trying to understand method calling in OOP
in thread [SOLVED]: Trying to understand method calling in OOP

Which is why the first line in many routines is my self = shift;
  • Comment on Re^2: Trying to understand method calling in OOP

Replies are listed 'Best First'.
Re^3: Trying to understand method calling in OOP
by Your Mother (Archbishop) on May 07, 2018 at 22:17 UTC

    Is that why?

    moo@cow[4345]~>perl -Mstrict -le 'sub { my self = shift }' No such class self at -e line 1, near "{ my self" syntax error at -e line 1, near "my self =" Execution of -e aborted due to compilation errors.

      I love it when I get to say "Your Mother has spoken!" ;)

Re^3: Trying to understand method calling in OOP
by karlgoethebier (Abbot) on May 08, 2018 at 06:46 UTC

    I tried my sundialsvc = shift; Doesn't work neither. Perl is magic.

    «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