in reply to subroutine ref while "strict refs"
but is there a neater way? If someone else changes the record layout and adds a new subroutine, then the code would need to be changed to cater for it, which probably isn't ideal.if ($sub_routine =~ /check_char/} { check_char ($value1, $value2); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: subroutine ref while "strict refs"
by BillKSmith (Monsignor) on Jul 28, 2014 at 12:09 UTC | |
by Anonymous Monk on Jul 28, 2014 at 13:34 UTC | |
by BillKSmith (Monsignor) on Jul 28, 2014 at 14:13 UTC | |
by viffer (Beadle) on Jul 29, 2014 at 03:28 UTC |