in reply to how to make this perl code run
Sure, no problem. I'll give you the hint that it involves Exporter and some command-line flags. So is this homework or an interview?
Update: Well, since moritz put in a great solution, mine is
in Junk.pm. moritz's feels more in the spirit of the question.package Junk; require Exporter; our @ISA = 'Exporter'; our @EXPORT = qw|hi hello hola|; sub hi { "hi"; } sub hello { "hello"; } sub hola { "hola"; } 1;
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to make this perl code run
by choroba (Cardinal) on May 16, 2013 at 15:08 UTC | |
by kennethk (Abbot) on May 16, 2013 at 15:17 UTC |