Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Issue with Exporter

by Samy_rio (Vicar)
on Jan 11, 2007 at 13:09 UTC ( #594138=note: print w/ replies, xml ) Need Help??


in reply to Issue with Exporter

Hi palette, below code will help you,

use one qw(method1); print "its here"; method1; print "here";

Untested

Here is explanation Exporter

Thanks davorg++.

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';


Comment on Re: Issue with Exporter
Select or Download Code
Re^2: Issue with Exporter
by davorg (Chancellor) on Jan 11, 2007 at 13:22 UTC
    Untested

    Perhaps you should have tested it :-)

    @EXPORT controls symbols which are automatically exported from the module. If a symbol is included in @EXPORT then you don't need to explicitly name it in the use command. You only need to explicitly name symbols that are in the @EXPORT_OK array.

    The actual problem is that the module doesn't load Exporter.pm - so putting symbols in @EXPORT has no effect.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-08-30 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls