If you are just looking for the output file: Smart::Comments .
You just use it.
use Smart::Commments;
And then you put any simple variable in a three-character comment, for example:
my $v = black_box_process();
And he unloads it in almost the most beautiful press.
You can also manage more complex expressions as follows:
#
But you have to watch it on the "colon path".
### $My::Package::variable
or
###% My :: Package ::
never worked in my experience. If I want them to work, I need something like this:
my %stash = %My::Package::;
It also performs a number of other tricks that you can see by reading the documentation.
Axeman
source share