Not to mention cases where the method name itself is dynamically computed at runtime.
my $method = $phase_of_moon eq 'waxing' ? "discombobulate" : "vreemflitzel"; $obj->$method( $price_of_tea_in_china );
In reply to Re^2: syntax error checking on object methods
by Fletch
in thread syntax error checking on object methods
by eXile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |