Why you want to call one subroutine as a parameter within another one?
It is rather common to do that. What's wrong with it, in your view?
use strict; use warnings; use feature 'say'; print_timestamp('nigh'); print_timestamp( get_formatted_time() ); sub print_timestamp { say 'The time was ' . shift() } sub get_formatted_time { return uc scalar localtime } __END__
In reply to Re^2: Safe module and undefined subroutines
by 1nickt
in thread Safe module and undefined subroutines
by bovlb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |