Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Where to put self-made loop logic (separate module)?

by CountZero (Bishop)
on Dec 30, 2012 at 09:14 UTC ( #1010904=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    package My::Cunning::Module;
    use Modern::Perl;
    use Exporter qw/import/; 
  2. or download this
    use Modern::Perl;
    use My::Cunning::Module qw/looper/;
    # somewhere in your program
    looper($data) or die 'It did not work';