Re: Polluting the Global Namespace

2006-07-21 Thread Shane Calimlim
Thanks everyone for the help, this is exactly what I needed. On 7/20/06, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 7/20/06, Shane Calimlim <[EMAIL PROTECTED]> wrote: > I'd like to add some sub routines to the global namespace. I know this is > usually considered bad design for modules, but I

Re: Polluting the Global Namespace

2006-07-20 Thread Mumia W.
On 07/20/2006 05:09 AM, Shane Calimlim wrote: I'd like to add some sub routines to the global namespace. I know this is usually considered bad design for modules, but I intend to do this only for a personal project. I'd just like to know if this is possible, and how. And if so, using pure perl c

Re: Polluting the Global Namespace

2006-07-20 Thread Aaron Priven
See "perldoc Exporter". If you use @EXPORT instead of @EXPORT_OK, it will put those subroutines into the global namespace by default. On Jul 20, 2006, at 3:09 AM, Shane Calimlim wrote: I'd like to add some sub routines to the global namespace. I know this is usually considered bad design fo

Polluting the Global Namespace

2006-07-20 Thread Shane Calimlim
I'd like to add some sub routines to the global namespace. I know this is usually considered bad design for modules, but I intend to do this only for a personal project. I'd just like to know if this is possible, and how. And if so, using pure perl code or would I have to delve into xs?