in reply to Re^6: How to call subroutines using variables ?
in thread How to call subroutines using variables ?
Why would you need to disable strict for this block:
{ no strict 'refs'; $code = $val[$i]; }
Without seeing the rest of the code, I can't tell you exactly what this does:
my @val = (\val_input,\val_input,\val_input,\val_input,\val_number,\val_date,\val_number,\val_filter);I can tell you that it doesn't take references to val_input, val_number, and so on. If you've predeclared those subroutines, Perl will call them and then take references to their return values. Otherwise, they're bare words, and strict will complain.
|
|---|