Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I tried what you said thusly:
package NCPS::Results; use strict; use warnings; use lib '/var/www/html/lib' ; use NCPS::UTIL qw/prepareExecute pretty_time getTableColumns input_tim +e convertTime getInfoById / ; use NCPS::Meets qw/getMeetInfo getEventLayout getPointsParadigm getEve +ntLayout2 /; use NCPS::Teams qw/getTeamInfo getAthlete/ ; use NCPS::Events qw/getEventInfo/ ; use NCPS qw/debug logtime /; use Data::Dumper ; $Data::Dumper::Sortkeys = 1 ; $Data::Dumper::Indent = 1 ; my $debug = 1 ; our (@ISA, @EXPORT_OK); BEGIN { require Exporter; @ISA = qw(Exporter); warn "NCPS::Meets found at $INC{'NCPS/Meets.pm'}\n" ; warn "Is NCPS::Meets a subclass of Exporter? ", NCPS::Meets->isa('Expo +rter') ? "Yes\n" : "No\n" ; warn "Can NCPS::Meets export getMeetInfo? ", (0 != grep { $_ eq 'getMe +etInfo'} @EXPORT_OK) ? "Yes\n" : "No\n" ; @EXPORT_OK = qw/ getTeamIdFromAbbr getMeetResults getTeamResults getResultDetail insertResult insertSplits insertRelay insertLeadoff getEventResults sortEventResults getScores getEventScores setEventScore updateMeetScores setMeetScore getCumulativeScores getPerformancePoints convertMeetToNWayDual scoreEvent addScoresAfterTheFact setResultScoreAndPlace deleteResult getEventIDFromResultRecord getLeadOffSplit updateMeetTimeStamp /; }
And I tested the module syntax command-line:
root@ncps-modperl-prod:/var/www/html/lib/NCPS# perl -ctw Results.pm NCPS::Meets found at /var/www/html/lib/NCPS/Meets.pm Is NCPS::Meets a subclass of Exporter? No Can NCPS::Meets export getMeetInfo? No NCPS::Meets found at /var/www/html/lib/NCPS/Meets.pm Is NCPS::Meets a subclass of Exporter? Yes Can NCPS::Meets export getMeetInfo? No Subroutine getPerformancePoints redefined at Results.pm line 58. Subroutine getTeamIdFromAbbr redefined at Results.pm line 104. Subroutine getMeetResults redefined at Results.pm line 112. Subroutine getTeamResults redefined at Results.pm line 126. Subroutine getResultDetail redefined at Results.pm line 256. Subroutine insertResult redefined at Results.pm line 296. Subroutine insertSplits redefined at Results.pm line 389. Subroutine insertRelay redefined at Results.pm line 421. Subroutine getEventResults redefined at Results.pm line 453. Subroutine sortEventResults redefined at Results.pm line 650. Subroutine getEventScores redefined at Results.pm line 718. Subroutine scoreEvent redefined at Results.pm line 745. Subroutine updateMeetTimeStamp redefined at Results.pm line 854. Subroutine getScores redefined at Results.pm line 863. Subroutine setEventScore redefined at Results.pm line 888. Subroutine updateMeetScores redefined at Results.pm line 919. Subroutine setMeetScore redefined at Results.pm line 939. Subroutine getCumulativeScores redefined at Results.pm line 988. Subroutine convertMeetToNWayDual redefined at Results.pm line 1016. Subroutine addScoresAfterTheFact redefined at Results.pm line 1098. Subroutine setResultScoreAndPlace redefined at Results.pm line 1132. Subroutine deleteResult redefined at Results.pm line 1147. Subroutine getEventIDFromResultRecord redefined at Results.pm line 117 +3. Subroutine getLeadOffSplit redefined at Results.pm line 1194. Subroutine insertLeadoff redefined at Results.pm line 1254. Results.pm syntax OK
I double checked Meets.pm here:
package NCPS::Meets; use strict; use warnings; use feature qw( switch ); no warnings qw( experimental::smartmatch ); use lib '/var/www/html/lib' ; use NCPS qw/ debug / ; use NCPS::UTIL qw/prepareExecute display_event display_event2 getInfoB +yId/ ; use NCPS::Teams qw/getTeamInfo/ ; my $debug = 1 ; our (@ISA, @EXPORT_OK); BEGIN { require Exporter; @ISA = qw(Exporter); @EXPORT_OK = qw/ createMeet addMeetDirector addTeamsToMeet setupEventScores getEventStatus changeEventStatus getMeetInfo getMeetRoster getEventLayout getEventLayout2 getMyMeets getPointsParadigm getAllEventLayouts getAllScoringLayouts getAllFacilities getSubMeets getEventIDFromEventOrder getPointsLayout checkMeetId clearMeet getMeetsToEnter addDiveCat pastDeadline getReferees getMeetsToCertify getOfficials /; }
I'm guessing all those redefined statements indicate a rather serious problem somewhere. I'll follow that thread.

In reply to Re^2: use statement seemingly ignored by wolfie7873
in thread use statement seemingly ignored by wolfie7873

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-24 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found