Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: require issue.

by siva kumar (Pilgrim)
on Mar 02, 2007 at 12:19 UTC ( [id://602868]=note: print w/replies, xml ) Need Help??


in reply to Re: require issue.
in thread require issue.

Hi .. I tried to resolve and have the sample programs.. "Ant" correct me if I am wrong
main.pl
require "somefile.pl"; use newform; &someFile(); &newform::func1();
somefile.pl
sub someFile { print "LAMP"; } sub someFile1 { print "J2EE"; } 1;
newform.pm
package newform; require "somefile.pl"; sub func1 { &someFile1(); print "Inside func1"; } 1;
while trying to run main.pl, getting the following error
Undefined subroutine &main::someFile called at s1.pl line 5.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-18 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found