in reply to Function call
Perl 5 does not support multi functions. What your piece of code does is calling an anonymous subroutine. See Higher Order Perl for more information.
Another way to write this is $handler_for{ $action }->(%opts). See perlreftut and perlref for more information.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Function call
by rovf (Priest) on Mar 02, 2012 at 09:01 UTC | |
by eyepopslikeamosquito (Archbishop) on Mar 02, 2012 at 09:35 UTC | |
by moritz (Cardinal) on Mar 02, 2012 at 10:08 UTC | |
by tobyink (Canon) on Mar 02, 2012 at 10:07 UTC | |
by JavaFan (Canon) on Mar 02, 2012 at 10:05 UTC | |
by akagrawal3 (Beadle) on Mar 02, 2012 at 09:06 UTC | |
by ikegami (Patriarch) on Mar 02, 2012 at 09:15 UTC | |
by ikegami (Patriarch) on Mar 02, 2012 at 09:15 UTC | |
|
Re^2: Function call
by akagrawal3 (Beadle) on Mar 02, 2012 at 09:11 UTC | |
by moritz (Cardinal) on Mar 02, 2012 at 10:01 UTC | |
by akagrawal3 (Beadle) on Mar 02, 2012 at 10:49 UTC |