in reply to How to use a module without installing it?
Is there a way to just cut/paste the module's code inside of my Perl code? ... I'd love to see an example.Yes. Here is a trivial example:
Foo::bar(); package Foo; sub bar {print "bar: hello\n"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use a module without installing it?
by almut (Canon) on Aug 03, 2009 at 22:58 UTC | |
by playameerkat (Initiate) on Aug 04, 2009 at 20:43 UTC | |
by almut (Canon) on Aug 04, 2009 at 21:15 UTC | |
by LanX (Saint) on Aug 06, 2009 at 00:02 UTC | |
by almut (Canon) on Aug 06, 2009 at 00:36 UTC |