Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Undefined subroutine errors

by ikegami (Patriarch)
on Oct 26, 2005 at 03:05 UTC ( [id://502933]=note: print w/replies, xml ) Need Help??


in reply to Re: Undefined subroutine errors
in thread Undefined subroutine errors

None of the functions provided by Exporter are called in your snippet. Why bother using Exporter?

Update: In answer to my question, I suppose it gives the Green Goblin and other third parties the ability to import from these modules, but it detracts from the point of using fully qualified function names.

Replies are listed 'Best First'.
Re^3: Undefined subroutine errors
by leriksen (Curate) on Oct 26, 2005 at 03:11 UTC
    In this case no, but that doesnt stop someone else using Spiderman or DrOctopus with the full export.

    As I said, it fixes his problem, YAWTDI, but not a great way.

    ...reality must take precedence over public relations, for nature cannot be fooled. - R P Feynmann

      All you need to do is put BEGIN { ... } around our @EXPORT = ... (and remove the () from the use statements) and it works without fully qualified function names.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://502933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-19 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found