There's more than one way to do things | |
PerlMonks |
Re: Can I do single-file, Object oriented perl?by trammell (Priest) |
on Jul 05, 2005 at 16:40 UTC ( [id://472516]=note: print w/replies, xml ) | Need Help?? |
One trick I learned here for making a module that you can "run":
I have tried creating a .pl file and the keyword "package" throws errors. I have tried creating a .pm file, then putting main code (even "print 'Hello World', before the "1;", and this throws different errors.You'll have to be more specific; I do those things all the time without a hitch.
In Section
Seekers of Perl Wisdom
|
|