in reply to I don't understand this code, perl delegates and empty parameter lists.

1. _print doesn't pass any parameters, so what is $class supposed to be assigned?

When you add "print @_" what gets printed?

Have you read perlobj?

  • Comment on Re: I don't understand this code, perl delegates and empty parameter lists.

Replies are listed 'Best First'.
Re^2: I don't understand this code, perl delegates and empty parameter lists.
by MidasTouch (Initiate) on Mar 20, 2015 at 09:44 UTC

    So then what is _new calling? Print doesn't seem to inherit any classes. Here is the code

    https://github.com/alexrj/Slic3r/blob/master/lib/Slic3r/Print.pm