Syntactic Confectionery Delight | |
PerlMonks |
Re: Get code ready for a loop (and a little RFC)by Veltro (Hermit) |
on Mar 14, 2020 at 10:43 UTC ( [id://11114249]=note: print w/replies, xml ) | Need Help?? |
Hello Lady Aleena Maybe you want to use the sub that you eventually create to be used by several programs... There is a technique that I sometimes use to be able to use common functionality that is needed by several programs. And I don't want to repeat myself over and over so I put those in libraries that are commonly accessible. E.g. I have a simple "CommonFunctions.pm" file containing functions like "trim", "trimleft", "trimright". I will share this example how to achieve this because I think it might be usefull to you. I have added use examples below under __END__. MySVG.pm
In Section
Seekers of Perl Wisdom
|
|