Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: converting libraries into modules

by Courage (Parson)
on Mar 05, 2006 at 18:00 UTC ( #534589=note: print w/replies, xml ) Need Help??

in reply to Re: converting libraries into modules
in thread converting libraries into modules

although using Exporter is suggested by, say, h2xs, I think using Exporter isn't a good habbit.
Its not good to pollute namespace.

Using package::utilname(...); $utlobject->utl_method(...); is flexible enough and no real need to save few keystrokes by not pointing package name, and risking to have naming conflict later....

Also, extra dependency on Exporter, and many extra lines in your template to introduce Exporter, do not worth the effort.

Best regards,
Courage, the Cowardly Dog

Replies are listed 'Best First'.
Re^3: converting libraries into modules
by dragonchild (Archbishop) on Mar 05, 2006 at 18:47 UTC
    While I agree with you from a purity perspective, Exporter exists specifically to make the transition between P4 repositories and P5 libraries easier. In other words, Exporter is the exact right tool in this situation.

    Now, if the OP wants, we can educate him on better software practices later. But, for now, this solves the OP's problem to a 't'.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
      I agree, although I do not know what ...solves the OP's problem to a 't'. means :):)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://534589]
[shmem]: well, there are some builtins which don't have a prototype...
[Discipulus]: eh eh.. i was looking in toke.c but dunno if is already used
[shmem]: oh the whitespace in the regex got condensed, meh
[shmem]: should be /^ {7}(\w+)/ or such
[shmem]: least for my perldoc on Linux debian 8
[Discipulus]: mmh.. at themomemt i just an old 5.8 and outputs just GLOBAL::

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-05-23 10:10 GMT
Find Nodes?
    Voting Booth?