in reply to Can I do single-file, Object oriented perl?
If you prefer the script code at the bottom, put "package main;" after the package code, to flip back to the main package, and you don't need to end the file with 1;
If you want more specific answers, please explain *which* errors you got while putting prints in (and give the exact code you tried, or a simplified version thereof).
C.
|
|---|