Perl: the Markov chain saw | |
PerlMonks |
Re: Header file managementby shmem (Chancellor) |
on Apr 30, 2018 at 09:49 UTC ( [id://1213808]=note: print w/replies, xml ) | Need Help?? |
There are many ways to to that. Study Modern::Perl by chromatic for a nice way to import modules as a bundle into your current namespace. If you use 5.18, then the use feature qw(state say) is redundant afaik. You could also write a file, say, header.pl containing use statements,and write your MyCommonUses.pm as
so you have to edit only the common header file to add or remove packages. A bonus would be some way to dispense with the inelegant one-semicolon. Easy. Skip 1;, write
at the end.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|