CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [PapaGeek] Setting up Eclipse/Epic: Edit Log



FishMonger
Veteran / Moderator

Aug 10, 2013, 7:31 AM


Views: 4570
Re: [PapaGeek] Setting up Eclipse/Epic

You need to have a statement in webTest.pl that loads subtest.pl so that it can find the subtest() sub. The easiest way to do that would be to add a 'do' statement just after your 'use' statements.

Code
do 'subtest.pl';


The best method would be to put subtest() in a .pm module which exports the sub and load that module via a use statement.


(This post was edited by FishMonger on Aug 10, 2013, 7:33 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Aug 10, 2013, 7:32 AM
Post edited by FishMonger (Veteran) on Aug 10, 2013, 7:33 AM
Post edited by FishMonger (Veteran) on Aug 10, 2013, 7:33 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives